Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="nl">
- <head>
- <meta http-equiv="Content-type"
- content="text/html; charset=UTF-8">
- <title>labopdracht 10</title>
- <script language="JavaScript">
- function euroConverter(){
- document.converter.dollar.value = document.converter.euro.value * 1.36
- document.converter.ruble.value = document.converter.euro.value * 48.40
- }
- function dollarConverter(){
- document.converter.euro.value = document.converter.dollar.value * 0.74
- document.converter.ruble.value = document.converter.dollar.value * 64.28
- }
- function rubleConverter(){
- document.converter.dollar.value = document.converter.ruble.value * 0.0072
- document.converter.euro.value = document.converter.ruble.value * 0.02
- }
- </script>
- </head>
- <body>
- <form name="converter">
- <table border="0">
- <tr>
- <td>Euro: </td><td><input type="text" name="euro" onChange="euroConverter()" /></td>
- </tr>
- <tr>
- <td>Dollar: </td><td><input type="text" name="dollar" onChange="dollarConverter()" /></td>
- </tr>
- <tr>
- <td>Roebel: </td><td><input type="text" name="ruble" onChange="rubleConverter()" /></td>
- </tr>
- <tr>
- <td colspan="2" align="center"><input type="button" value="Convert!" /></td>
- </tr>
- </table>
- </form>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement