The following codes displays the alert, but does not take me to the requested page.
function redirect() {
alert('runs');
parent.main.document.location = "url.php";
}
I’m using frames, I want the page to load into the frame named ‘main’. Thanks for any help.
Use this instead:
And for frames you can use it like this:
Hope this helps.