Placing the following JavaScript code in a web page will cause it to automatically redirect to the address provided in the code.
1 2 3 4 5 6 7 |
<script type='text/javascript'> window.location = 'https://kodej.com' </script> |
If you need to redirect the parent page of an iframe you could use something like the following code.
1 2 3 4 5 6 7 |
<script type='text/javascript'> window.top.location.href = 'https://kodej.com'; </script> |