Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Exercice 1</title>
- <script>
- t = 0.338306;
- function eutodt() {
- document.getElementById('d').value = f.eu.value/t;
- }
- function dttoeu() {
- document.getElementById('e').value = f.dt.value*t;
- }
- function taux() {
- t=prompt("Donner taux");
- return t;
- }
- </script>
- </head>
- <body>
- <form name="f">
- Conversion Devise<br><br>
- Dinar : <input type="text" name="dt" id="d"><br><br>
- Euro : <input type="text" name="eu" id="e"><br><br>
- <input type="button" value="DT > EU" onclick="dttoeu()">
- <input type="button" value="EU > DT" onclick="eutodt()"><br>
- <input type="button" value="Modifier Taux" onclick="taux()">
- <input type="reset" value="Reset">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement