Try changing it to onMouseDown instead of OnClick
<a href="Quiz_main.htm" onMouseDown="window.print()">Print_score</a>
- the default click event to open the link is firing before the event handlers
- the Onmousedown event should fire before the click event
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
Thanks Stefan,
I added the onClick event, but nothing prints. Here is the code as I have it:
<a href="Quiz_main.htm" onClick="window.print()">Print_score</a>
It goes to the new page but no print. What am I missing?
Thanks,
Phil
Stefan B Rusynko said:
Create the button as an image (or text) and add a hyperlink to it to the new page
- in the hyperlink add an onclick event to print the page
<a href="newpagefilename.htm" onClick="window.print()">New page</a>, or
<a href="newpagefilename.htm" onClick="window.print()"><img src="buttonimage.jpg"></a>
--
Hi,
I have page that is trivia quiz. When the person finishes the quiz I have a
text box (on the same page) for them to enter their name. I also have a
command button that I want to print the current page (quiz) and then go to a
NEW page.
Can someone help me the the code for the command button?
Thanks,
.
.