Javascript inse HTTP-EQUIV="Refresh"?

I was wandering how I could do this:

<META HTTP-EQUIV="Refresh" Content="0; URL=ajax.php?page=mypage">

with this:


Can somebody please guide me… <body onLoad> is not an option… Is there other ways?

It’s not entirely clear from your question what you’re trying to achieve.
Do you want to redirect to another page (which is what the meta refresh does) or do an ajax request on load (which is what I assume your “load” function does) ?

Normally I have the ajax load function with a hyperlink like this:

<a href="#" onclick="load('ajax.php?page=mypage','contentarea');return false;">

But now I want it to be a part of an redirect, caurse I have just updated my db and want to return the page…

Hope this make it easier to understand.