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?
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
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)