Results 1 to 4 of 4

Thread: HV menu and IFRAME

  1. #1
    Join Date
    Sep 2004
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default HV menu and IFRAME

    Is it possible to target an I frame from a menu item in the HV menu?

  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

    Why not? Give the iframe a name and treat it like a frame, as far as targeting goes.
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2004
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    i know the principal should work but in the menu item code where do I specify the target. Tried :

    Menu4_3=new Array("SUBMIT AN ENTRY","form.asp target=iframename","",0,20,140);

    and it does not work?

  4. #4
    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

    You can use one of two methods depending upon what you want to have happen.

    Method one ex:
    Code:
    Menu2_1_1=new Array("CNN","javascript:main.location.replace('http://www.cnn.com')","",0,20,150);
    With this method, when clicked, the link will display on the page that the menu is on in an iframe named main. It will not add to the history stack so, clicking the back button will take the user to whatever was the previous page on the stack before this link was clicked (same page it would have gone to if this link never was clicked).

    Method two ex:
    Code:
    Menu2_1_3=new Array("MSNBC","javascript:main.location.href='http://www.msnbc.com'","",0);
    This will do the same thing as the above method except that it will add to the history stack. Hitting the back button after clicking this link will return the iframe called main to its previous contents.
    - John
    ________________________

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

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
  •