| <html> | |
| <head> | |
| <script type="text/javascript"> | |
| var tab; | |
| function openWinIFrame() | |
| { | |
| tab = window.open("iframe_redirect_malware.html"); | |
| } | |
| function openWin() | |
| { | |
| tab = window.open("redirect_to_malware.html"); | |
| } | |
| function stopWin() | |
| { | |
| tab.stop(); | |
| // This will trigger a navigation event. | |
| window.location = "/"; | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| <form> | |
| <input type=button value="Open Redirect Window" onclick="openWin()"> | |
| </form> | |
| <form> | |
| <input type=button value="Stop Window" onclick="stopWin()"> | |
| </form> | |
| </body> | |
| </html> |