I want to open a new window like target='blank' do in html, but i need to do it from a header..i mean from: header("location: mypage.php ");
i want to open mypage in other window... how can i do to open this location in new window? Thanks , Router
It's not possible with headers ! Sorry !
Thank you very much! I'm loosing my time, searching a solution!! Thank you! And happy new year 🙂
You could set location to a document that open the new window with JavaScript.
regards Thomas
Please, can you giveme and example? I have no idea about javascript!! Thanks!! Router
<script type="text/javascript"> function openwindow($loc) { chwin = open($loc); } </script> <a href="javascript:openwindow("http://www.google.com")">Click Here</a>
a question... that code do the same that... <a href='www.google.com' target='_blank'>click here </a>
,isn't it?
My problem is that i wanna to open new window from a header or from input type submit...
but thank you very much!!! 🙂 Router
You have misunderstood ereptur.
<html> <head> <script type="text/javascript"> function openwindow($loc) { chwin = open($loc); } </script> </head> <body onload="openwindow('mypage.php');"> content goes here .... yadda yadda yadda </body> </html>
oh!Now, i understand, thank you very much!! ah! I like your photo very much, Sarahk!! 🙂 Thanks again! Router