Results 1 to 2 of 2

Thread: Problem with navigation buttons in Firefox

  1. #1
    Join Date
    Nov 2010

    Problem with navigation buttons in Firefox


    I am using some buttons to navigate documents on a web page. Below are the sample code:

    <input type="button" name="NavPrevious" onclick="ShowDoc('Previous');" value="Previous" />
    <input type="button" name="NavNext" onclick="ShowDoc('Next');" value="Next" />

    The navigation buttons are in an iframe, the document will be loaded to another iframe called loader_frame, and the ShowDoc javascipt function assign a doc url to parent.document.getElementById('loader_frame').src every time a user clicks a navigation button.

    The navigation buttons work fine in IE and Opera, but they don't work in Firefox (the buttons seem to be disabled.).

    If I add an alert line, such as alert("test"), in function ShowDoc, the navigation buttons work in Firefox.

    Does anyone know how to resolve this kind of problem in Firefox?



  2. #2
    Join Date
    Apr 2003
    Probably incorrect referencing, use document.obj not just obj
    What is the code of function ShowDoc?
    Last edited by Fang; 11-29-2010 at 10:50 AM.
    At least 98% of internet users' DNA is identical to that of chimpanzees

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