JavaScript_Fetch_API/fetch-api-form.html

18 lines
457 B
HTML
Raw Permalink Normal View History

2020-01-12 13:50:24 +00:00
<!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>