Hi all,
Is there a Javascript command that does the same has
<code>response.redirect ("URL")</code>
Note:response.redirect ("URL") is in VBScript
Thanks
Printable View
Hi all,
Is there a Javascript command that does the same has
<code>response.redirect ("URL")</code>
Note:response.redirect ("URL") is in VBScript
Thanks
PHP:Code:window.location = ...;
If the page's only purpose is to redirect, then you can use a META tag with a REFRESH attribute. I think it goes something like:PHP Code:header("Location: whereever.html");
Code:<head>
.
.
.
<meta http-equiv="refresh; 0" content="whatever.html">
.
.
.
</head>
close Arien
also that header("Location: whereever.html"); can also impliment a bunch of wrning messages that say header already sent if the person doesn't do it right.Code:<META HTTP-EQUIV="Refresh" Content="5;URL=page.html">
but wouldn't javascript be
Code:<head>
<SCRIPT LANGUAGE="JavaScript">
function redirectPage() {
window.location.href= youpage.html;
}
</script>
</head>
<body onload="redirectPage()">
Why onClick? :confused: Shouldn't it be onLoad?
yes you are right. not sure how that got there.