Jump to content

Pop up


williamZanelli

Recommended Posts

Hi guys,

 

I was jsut wondering if someone could tell how I could code a popup when someone clicks on a hyperlink.

 

I have terms and conditions on mywebsite.. when a user accepts I want a pop-up-link to the terms

 

The following code does the job, however I want to customise the new window, as in size, scroll, toolbar etc.

<a href="terms.html" target="_blank">

 

Any ideas..? is this a Javascript issue?

 

Thanks in advance

 

William.

Link to comment
https://forums.phpfreaks.com/topic/128531-pop-up/
Share on other sites

plz dont use ugly popups  :P try using a modal instead. that way you don't have to worry about a popup blocker and it looks nicer.

 

here is an example for you

http://prototype-window.xilinus.com/

 

there are tons of modal scripts out there just take one you like

Link to comment
https://forums.phpfreaks.com/topic/128531-pop-up/#findComment-666102
Share on other sites

 

I did using the folliwing code. I agree your appraoch is better, its something I'll look into the future,

 

I have read the  < a on click="window.open('http://www.somesite.com/terms.html', 'BBCWorldNewsWindowName', 'left=100,screenX=200,resizable,scrollbars,status'); return false;" target="_blank" > terms  and I agree to them.

 

 

Thanks for the tips.

 

William

Link to comment
https://forums.phpfreaks.com/topic/128531-pop-up/#findComment-666156
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.