Agree Before Entry | JavaScriptSource

Agree Before Entry

Lee Underwood Jan 26, 2007

General

Confirm your visitor's approval by requiring their name before continuing on. Useful if you require your visitors to accept a disclaimer before downloading software or visiting a section of your members-only site. Could be used with a cookie.


I agree
Please enter your name to show agreement:
I disagree

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: agreeBeforeEntry.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(7 comments)

In order to better help you, you'll need to post your question [a href="http://www.webdeveloper.com/forum/forumdisplay.php?f=3"]over on the forums[/a].

Lee Jun 26, 2008

You will need to submit your question to the [a href="http://www.webdeveloper.com/forum/forumdisplay.php?f=3"]JavaScript forums[/a].

Lee May 12, 2008

I'm a beginner at all of this script and HTML stuff, so I have NO clue where to put the link for the "Done!" button on the code. If you can tell me where, can you please e-mail me at ejkepner@yahoo.com ? Thanks!

Eric Apr 22, 2008

I've tried the below section but nothing hapens. When I change the behaviour, the part that requests your name does not appear and I cannot proceed to anywhere. I use Dreamweaver 8. Any help on how, once agree has been pressed, their name has been typed in and submit has been clicked, for the visitor to proceed to the page they wished to view?

Mr I need Help Jan 21, 2008

I have the same question as below, but I cant figure out your explanation. I am trying to make it so when you agree and click done, you link to a new page instead of a popup. Can you re-explain how to do this step by step? Thanks

ej Jan 8, 2008