Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

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


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

6. From: Eric
A question about the Agree Before Entry code
04/22/2008 18:03:56

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!

7. From: Lee (Admin)
06/26/2008 11:40:09

In order to better help you, you'll need to post your question over on the forums.

4. From: Mr I need Help
01/21/2008 13:26:29

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?

5. From: Lee (Admin)
05/12/2008 11:52:27

You will need to submit your question to the JavaScript forums.

2. From: The wisdom master
05/01/2007 20:25:25

to put a link you need to highlight the circle of agree of either disagree and go to behaviors and then on the field a message will appear like this: Onclick agree2( ).
you will erase the Agree2 ( ) and replace it with http://theaddressyoulike.com and you will follow the same procedure with the other

3. From: ej
linking
01/08/2008 23:47:42

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

1. From: bababuba
04/10/2007 04:26:52

hi ,
in the agree/disagree script , how do i put links for next action for agree/disagree ?

thanks



Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.