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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.