Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>
- Morgen
- </title>
- <script language = "javaScript">
- function hallo(TF1){
- text1 = TF1.value;
- var zahl = parseInt(text1);
- if(zahl<0){
- zahl = -zahl;
- }else{
- zahl = zahl*2;
- }
- TF1.value = zahl;
- }
- </script>
- </head>
- <body>
- <form name ="hi">
- <input type ="text" name ="text1" value ="hallo">
- <input type ="button" name ="Button1" value="Press"
- onclick = "hallo(this.form.text1);">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement