Redirecting web-browsers with Javascript

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

<script type="text/javascript">
function reload()
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=">
the parameters are 5 and url, the number in seconds. If you leave out the URL it will refresh to the same page.
Dette indlæg blev udgivet i Knowledge Base. Bogmærk permalinket.

Skriv et svar