chet139 Posted March 2, 2008 Share Posted March 2, 2008 For the purpose of a page which will need to be printed, I want to open a new page open a click of a page. Current this is done by echo' <form action="orderInvoice.html" method="get"> <input type="submit" value="Invoice" /> </form> '; Which Just goes forward in browser. I would like the current window to remain the same, but a new to open. Any ideas? Quote Link to comment Share on other sites More sharing options...
shocker-z Posted March 2, 2008 Share Posted March 2, 2008 It's a HTML question realy but please see below echo' <form action="orderInvoice.html" method="get" target="_blank"> <input type="submit" value="Invoice" /> </form> '; just added target="_blank" Regards Liam Quote Link to comment Share on other sites More sharing options...
monkeybidz Posted March 2, 2008 Share Posted March 2, 2008 So you want it to post to the same page and bring a popup new window? Quote Link to comment Share on other sites More sharing options...
chet139 Posted March 2, 2008 Author Share Posted March 2, 2008 No it has to be a different page, but I would want to keep the current page open, so a new window. I will try shocker-z solution first. Thanks Quote Link to comment Share on other sites More sharing options...
chet139 Posted March 2, 2008 Author Share Posted March 2, 2008 Yep, that works fine, in firefox however it opens a new tab, and in IE it opens a new window. any options for this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.