Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    uk
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    i need this line of javascript to work in NS6

    the following line of javascript only works in IE. what do i need to write to get it to work in NS6 as well?

    document.frames['iframe_name'].location.href="xxx";

    thanks, paul

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    185
    Thanks
    0
    Thanked 0 Times in 0 Posts
    First, put an id on the IFRAME tag:

    <iframe id="myIframe" ...></iframe>

    Then you can use:

    document.getElementById('myIframe').src = 'page.html'


  •  

    Posting Permissions

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