Is there any way to open a new window or new tab using PHP without using JavaScript.
Nope, a window can only be opening by adding target="_blank"
attribute (invalid in Strict (X)HTML, but valid in HTML5) or using JavaSript's window.open(url '_blank')
.
PHP runs server side - therefore it can generate the HTML or JavaScript, but it can't directly interact with the client.
Short answer: No.
PHP is a server side language (at least in the context of web development). It has absolutely no control over the client side, i.e. the browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With