Category Archives: JavaScript

Use JavaScript to redirect your webpage!

by mtecheasy on December 21, 2010

Just insert this code: <script> <!- – location.replace(“http://mtecheasy.wordpress.com”); – -> </script> This will make the browser instantaneously go to the URL. This will not work if someone has JavaScript disabled in their browser, the page will just sit there and do nothing. The easy fix, provide a URL as well! Example: <a href=”mtecheasy.wordpress.com”>mtecheasy</a>