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

This script checks to see if the user has cookies enabled in his browser. If not, it displays an alert window letting them know your site is using cookies.


Notes

  • Created by: Chris
  • Web Site:
  • Posted: October 26, 2005

Source Code

Paste this source code into the designated areas.

External file

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


Head

Paste this code into the HEAD 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

2. From: Sreejith
Need help
10/04/2007 06:11:50

I Check if the cookie is enabled or not ,then how i write a message into a labelbox

3. From: Lee (Admin)
11/06/2007 12:03:37

You will need to submit your question to the JavaScript Forum for further help.

1. From: saqib
12/20/2006 01:23:43

Hi,

How this code will work in IE6 and FireFox?
\
I tried it out in IE6 in windows XP. First I disable my cookies then run this code it didnot showed me alert box.

Bye.



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.