crimson_grunt
Shitty Disposition (apparently)
+214|7111|Teesside, UK
Not sure if this is in the correct forum so let me know if not and I'll delete and put in in the correct place.

For a uni project I'm making a PHP/mysql/apache online store website and need a bit of advice.  I was wondering if its possible with PHP to make javascript style popup's for example when you click on a product?  And if so also would pop up blockers prevent it opening?
ReTox
Member
+100|6956|State of RETOXification
PHP will handle javascript the same as it handles html, just echo the output you want the server to see:

Code:

<?

     echo('<script language="JavaScript1.2">Window.Open("My Url", MyParameters);</script>');

?>
And blockers will block the popup because... well that's what they do.


Good Luck!
crimson_grunt
Shitty Disposition (apparently)
+214|7111|Teesside, UK

ReTox wrote:

PHP will handle javascript the same as it handles html, just echo the output you want the server to
Cool thanks

Board footer

Privacy Policy - © 2025 Jeff Minard