Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.49 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. </head>
  5. <body>
  6. <input type="text"  id="in1" value="2" onmouseover="func1(this.value)"/>
  7. <input type="text" id="in2" value="3" onmouseover="func2(this.value)"/>
  8.  
  9. <input id="in2" value="3" onmouseover="func3()"/>
  10.  
  11. <script>
  12. //var v1;
  13. //var v2;
  14. function func1(val1){
  15.  
  16. return val1;
  17. }
  18. function func2(val2)
  19. {
  20.  
  21. return val2;
  22. }
  23.  
  24. function func3()
  25. {
  26.  var v1 = func1();
  27.  var v2 = func2();
  28. alert ("Val1: "+v1+"  Val2: "+v2);
  29. }
  30. </script>
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement