<input id="cancelbtn" class="button" value="Return to main page" type="button" onClick="window.location.h
Main Topics
Browse All TopicsHi,
I've come across a rather strange issue while making a site Firefox compatible. The JSP in question has the following onload code:
<BODY onLoad="document.getElemen
In IE the page loads OK then the Print dialog box pops up
In Firefox the print dialog box pops up and the page doesn't load until I click the print or the cancel button. Any ideas what could be causing it and how this can be coded so that the page behaves the same way as in IE (ie. load the page, then pop up print dialog box)?
The 'cancelbtn' object is just a link (button) to go to the previous page. It needs to be hidden until the print command has been issued from the print dialog box.
Many thanks in advance!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ZylochPosted on 2007-01-09 at 21:32:46ID: 18281829
What is inside the element with ID of cancelbtn?