Jump to content

[SOLVED] Javascript Inside PHP


sh0wtym3

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.