JavaScript_Fetch_API/fetch-api-form.html

18 lines
457 B
HTML

<!DOCTYPE html>
<html lang="it" dir="ltr">
<head>
<meta charset="utf-8">
<title>Form Fetch API</title>
<script src="fetch-form-api.js" charset="utf-8"></script>
</head>
<body>
<p>Inserisci una valuta per ottenere i tassi di cambio con l'Euro</p>
<form id="form">
<input type="text" id="currency" placeholder="Valuta">
<input type="submit" value="Converti">
</form>
<hr>
<h2 id="exchange-result"></h2>
</body>
</html>