window.open with headers

Can I control the HTTP headers sent by window.open (cross browser)? No If not, can I somehow window.open a page that then issues my request with custom headers inside its popped-up window? You can request a URL that triggers a server side program which makes the request with arbitrary headers and then returns the response … Read more

Why is set.timeout not working in this php while loop?

You cannot really use the setTimeout() function as you suggest… I guess this is roughly what you are looking for: echo <<< EOT <script type=”text/javascript”> setTimeout(function() { window.open(‘https://mywebsite/$link’, ‘_blank’); }, 1000); </script> EOT; Note: I just use the nowdoc notation since it is easier to read. Certainly it is possible to use a normal literal … Read more