954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

popup page on entry

Hi

I'm trying to find a tutorial that shows me how to create a popup page upon entry. The popup should save the user's cookie info and be big enough to display a user agreement which the user must click on to accept.

Does anyone know of any tutorial showing something like this? Even if it's just for the popup is fine.

Thanks
Riz

rizla777
Newbie Poster
11 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 
<script>window.open('http://myURL','nameformypopup','height=300,width=500,location=no,menubar=no,resizable=yes,scrollbar=yes,titlebar=no,toolbar=no,top=100,left=100')</script>

'namemyformpopup' is optional;
everything after it is also optional.

vsmash
Junior Poster
119 posts since Feb 2010
Reputation Points: 9
Solved Threads: 17
 

awesome man thanks. i'll try it right now. ive been searching everywhere through using jquery and such. its a bit daunting sometimes.

rizla777
Newbie Poster
11 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

should i put this in the head tag or a separate file and call that .js file?

rizla777
Newbie Poster
11 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

stick it in the header
for future reference just google window.open
remember that you can't count on popups getting past popup blockers.

vsmash
Junior Poster
119 posts since Feb 2010
Reputation Points: 9
Solved Threads: 17
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: