Delayed jump to a new web page

html, javascript

Solution

A meta refresh is ugly but will work. The following will go to the new url after 5 seconds:

<meta http-equiv="refresh" content="5;url=http://example.com/"/>

http://en.wikipedia.org/wiki/Meta_refresh

Problem

How do I cause the page to make the user jump to a new web page after X seconds. If possible I'd like to use HTML but a niggly feeling tells me it'll have to be Javascript. So far I have the following but it has no time delay ``` <body onload="document.location='newPage.html'"> ```

Original source