Click to See Complete Forum and Search --> : redirecting a login to a different iframe


pjlion
10-30-2003, 08:26 AM
I'm using a iframe for my login screen , how can i redirect it to another iframe , i'm using a semi secure paswordchecker using this as an startingpoint...
if (username=="pjlion" && password=="bla bla") { window.location="pjmain.htm"; done=1; }

where the page pjmain.htm should open in a iframe named "main"

thx allot
pj

Khalid Ali
10-30-2003, 08:54 AM
Change this line of code

window.location="pjmain.htm";

to

parent.iframeName.location.href="pjmain.htm";