Created
April 14, 2012 16:03
-
-
Save sc212/2385421 to your computer and use it in GitHub Desktop.
JavaScript:Hidden javascript onclick ad open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>JavaScript</title> | |
| <script type="text/javascript"> | |
| var varname; | |
| function funcname() | |
| { | |
| varname=prompt("Please type a number"); | |
| } | |
| onclick = function() { | |
| var chk= document.getElementById('thebutton'); | |
| chk.style.display="none"; | |
| }; | |
| </script> | |
| <style> | |
| #thebutton { | |
| border:none; | |
| background:transparent; | |
| width:100%; | |
| height:1000px; | |
| z-index:1; | |
| position:absolute; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <input type="button" id="thebutton" onclick="funcname()" value=""/> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment