Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- </head>
- <body>
- <input type="text" id="in1" value="2" onmouseover="func1(this.value)"/>
- <input type="text" id="in2" value="3" onmouseover="func2(this.value)"/>
- <input id="in2" value="3" onmouseover="func3()"/>
- <script>
- //var v1;
- //var v2;
- function func1(val1){
- return val1;
- }
- function func2(val2)
- {
- return val2;
- }
- function func3()
- {
- var v1 = func1();
- var v2 = func2();
- alert ("Val1: "+v1+" Val2: "+v2);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement