www.webdeveloper.com
Results 1 to 2 of 2

Thread: redirecting a login to a different iframe

  1. #1
    Join Date
    Oct 2003
    Posts
    1

    redirecting a login to a different iframe

    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

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,120
    Change this line of code

    window.location="pjmain.htm";

    to

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

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles