Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


Redirecting web-browsers with Javascript

Author:black - Tue Jul 23 04:18:01 2002

Put this between the <head></head> tags:

<script type="text/javascript">
function reload()
{
         window.location="http://blackthorne.dk/";
}
</script>
 
And this in the body tag:
 
<body onload="reload()">
Ok now, that's the buggy, crappy javascript style, you can make it as a mouseover() or onclick() if you like.
There is however another more automated way:
Make this meta tag:
<meta http-equiv="refresh" content="5, url=http://google.com">
the parameters are 5 and url, the number in seconds. If you leave out the URL it will refresh to the same page.
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk