Results 1 to 3 of 3

Thread: Help needed

  1. #1
    Join Date
    Sep 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Help needed

    Can anybody tell me how to get the javascript im using to open the requested page in an iframe? heres a section of the code:
    Code:
    if (e == null) e = event;
         var response=window.confirm("Clicking this link will leave the game and take you to the News Page.\nPlease log out of the game before exiting for your safety.\nClick the OK button if you have safely logged out.");
         if (response) document.location.href=menulink1;
         if (e.cancelable) e.preventDefault();
         return false;
    help would be greatly appreciated.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
         if (response) frameName.location.href=menulink1;
    Where frameName is a name you have assigned to the iframe:
    Code:
    <iframe name="frameName"></iframe>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ah, thanks a lot!

Bookmarks

Posting Permissions

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