sh0wtym3 Posted October 23, 2008 Share Posted October 23, 2008 Hey all, I want to open a new window with a specific size, which I know needs to be done with Javascript since PHP is a server side script. I wanted to know how to take this line of JS: window.open('http://www.mysite.com','','scrollbars=no,menubar=no,height=200,width=300,resizable=yes,toolbar=no,location=no,status=no'); And somehow implement it into my PHP echo statement below: echo "<a href=mysite.com> Click Here </a>"; Is this possible? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/129803-solved-javascript-inside-php/ Share on other sites More sharing options...
rhodesa Posted October 23, 2008 Share Posted October 23, 2008 echo "<a href=\"http://www.mysite.com\" onclick=\"window.open('http://www.mysite.com','','scrollbars=no,menubar=no,height=200,width=300,resizable=yes,toolbar=no,location=no,status=no');return false;\"> Click Here </a>"; Link to comment https://forums.phpfreaks.com/topic/129803-solved-javascript-inside-php/#findComment-672906 Share on other sites More sharing options...
sh0wtym3 Posted October 23, 2008 Author Share Posted October 23, 2008 Thank you very much! Link to comment https://forums.phpfreaks.com/topic/129803-solved-javascript-inside-php/#findComment-673040 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.