Shadowing Posted February 16, 2012 Share Posted February 16, 2012 Was wondering if its possible to open up a header in a new browser window? with html you add a target to do this. Can this be done with a header? header("Location: evaluate.php" target="_blank"); Quote Link to comment Share on other sites More sharing options...
smerny Posted February 16, 2012 Share Posted February 16, 2012 You'll have to use javascript window.open() or a meta refresh Quote Link to comment Share on other sites More sharing options...
Shadowing Posted February 16, 2012 Author Share Posted February 16, 2012 thanks for the responce smerny well damn lol. been trying everything. I cant even get it to do it in the action part of a html form. I really thought that would work. is there a way to have php excute a html link? Quote Link to comment Share on other sites More sharing options...
scootstah Posted February 16, 2012 Share Posted February 16, 2012 is there a way to have php excute a html link? No. What are you trying to do? Quote Link to comment Share on other sites More sharing options...
Shadowing Posted February 16, 2012 Author Share Posted February 16, 2012 I got it to work with using java script. I needed to use java script anyways cause I wanted to control the size of the window as well. I know this isnt php related. but i dont want users refreshing the new window that opens. right now i have it set to redirect the page if they try to refresh it. But id like the window to close instead. Also how do people select the name of the window at the very top of the broswer? instead of showing the link function openWin() { myWindow=window.open('evaluate.php','','width=220,height=150,location=no,toolbar=no,menubar=no'); myWindow.focus(); } Quote Link to comment Share on other sites More sharing options...
jcbones Posted February 16, 2012 Share Posted February 16, 2012 If you are using javascript, why not use a pop up (div) populated via AJAX. Then you would have no worry about page refresh, and you can easily close it at any time via javascript and the div id. As far as the Also how do people select the name of the window at the very top of the broswer? instead of showing the link. You should have a title element in the head of the document. If it is missing, the browser shows the link instead. 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.