I have a button on my site that pops-up a new window that has contents to be printed.
I was just wondering if I could make that same button also refresh the page it is on after the window is popped up?
Here is my code:
Code: Select all
<input type="button" value="Print Tickets NOW" onclick="window.printtickets('printtickets.php?inspector_code=004');return false;">
I tried this code below but it did not work, but it shows how I am trying to get that button to do two different actions at the same time, is it possible?
Code: Select all
<input type="button" value="Print Tickets NOW" onclick="window.printtickets('printtickets.php?inspector_code=004');return false; history.go();">
I was also wondering if changing the button type from "button" to "submit" and making the submit action a refresh back to the same page, but I think the pop-up window would then go to the background, right?