Javascript check for IE

function getInternetExplorerVersion() {     var rv = -1; // Return value assumes failure.     if (navigator.appName == ‘Microsoft Internet Explorer’) {         var ua = navigator.userAgent;         var re = new RegExp(“MSIE ([0-9]{1,}[\.0-9]{0,})”);         if (re.exec(ua) != null)             rv = parseFloat(RegExp.$1);     …

Jquery tips and tricks

I recently found a very good article of some useful jquery tips and tricks here it is:

Redirect page through javascript

Simple Redirect Page <script type=”text/javascript”> <!– window.location = “” //–> </script> Time Delayed Redirect <html> <head> <script type=”text/javascript”> <!– function delayer(){ window.location = “../javascriptredirect.php” } //–> </script> </head> <body onLoad=”setTimeout(‘delayer()’, 5000)”> <h2>Prepare to be redirected!</h2> <p>This page is a time delay redirect, Hang on while we redirect to another page.</p> </body> </html>