Jump to content

Popup window


Krash

Recommended Posts

 

Trying to get popup window to work in php.  Keep getting template parse errors.  Here's the code I've been using in HTML:

 

echo '
<a onClick="window.open('annexplayerpop.shtm','popup','height=275,width=425,top=130,left=280,scrollbars=no')" target="popup"><img src="popupbutton-blue-bg.png" title="Popup MP3 Player" border="0" height="45" width="58"></a>
';

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/218253-popup-window/
Share on other sites

Been trying that, but can't get it right.  Is it a backslash after every closing quote?

 

Ok, got it.  Had them in the wrong place.  Popup works.

 

Thanks! thu.gif

 

<a onClick="window.open(\'http://annexplayerpop.shtm\',\'popup\',\'height=275,width=425,top=130,left=280,scrollbars=no\')" target="popup">

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/218253-popup-window/#findComment-1132531
Share on other sites

You need to get yourself a decent editor at minimum. Nobody should need help with these types of errors.

 

echo '
<a onClick="window.open(\'annexplayerpop.shtm\',\'popup\',\'height=275,width=425,top=130,left=280,scrollbars=no\')" target="popup"><img src="popupbutton-blue-bg.png" title="Popup MP3 Player" border="0" height="45" width="58"></a>
';

Link to comment
https://forums.phpfreaks.com/topic/218253-popup-window/#findComment-1132532
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.