/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<body onload="javascript:setTimeout(function(){window.location.href='http://B.com'},2000);"> <script> $(function(){ $('.noscript').hide(); $('.redirect').html('<p>A is now B</p><p>Redirecting...</p>'); }); </script> <div class="redirect"> </div> <div class="noscript"> <p>A is now B</p> <p><a href="http://B.com">B</a></p> </div> </body>