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

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

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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.