Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- <!--
- function redirectlink(text){
- window.location = "index.php?keyName="+ text;
- }
- //-->
- </script>
- <form>
- <button type="button" id="butt_1" onclick="redirectlink(KEY_POWER)"> 1 </button>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- <button id="foo">Click</button>
- <script type="text/javascript">
- document.getElementById("foo").addEventListener("click", function(){
- window.location.replace("http://stackoverflow.com/q/36933820/5526354")
- })
- </script>
- </body>
- </html>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- <button id="foo" onclick="action()">Click</button>
- <script type="text/javascript">
- function action(){
- window.location.replace("http://stackoverflow.com/q/36933820/5526354")
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement