Javascript Cookie Snippets


31 December, 2014   

Function that allows a Javascript cookie to be set after HTML has been output to the page.

14 July, 2014   

A few points of interest: * The HREF links use JavaScript to set a browser cookie named "style". * Since we are only setting one cookie and it's name is "style", we can read its value using "document.cookie.charAt(6)". * If no cookie is set, "StyleFile" will evaluate to "style.css". * The...

09 July, 2012   

Place the following JavaScript code within the <BODY> of your web page.

03 April, 2014   

JavaScript functions to add, fetch or delete browser's cookies

26 September, 2011   

Pop up windows can provide a great way to gain new subscribers to your publication and even increase your sales. However, they can also be very irritating to your visitors. For this reason, you may want to use a pop up window JavaScript code that will only load the pop up window on your visitor's first visit. That way you're not continually...

You should use err_headers_out() and not headers_out() when you want to send cookies in the REDIRECT response.

03 April, 2011   

If you're looking for a JavaScript code to enable you to create a first visit pop up window for your web site, you've come to the right place. Pop up windows can provide a great way to gain new subscribers to your publication and even increase your sales. However, they can also be very irritating to your visitors. For this reason, you may want...

26 December, 2013   

Java code to read cookies, part of my WebAdmin project at BMT ARGOSS.

08 February, 2014   

How to set/get/delete Cookies

Detect Javascript On/Off, With Notification: If JavaScript is on the user gets a welcome message. If off, the user is instructed to turn it on.

04 July, 2012   

Good programmer comments their code so that anyone can know what is happening in code. Its easy for others to edit the code.

13 November, 2014   

Here is a form that asks for Name and Email address. When the form is submitted the Email address is verified first. If you put in a Name and a correct Email address, an anchor element is displayed allowing the user to download the file, two cookies are created storing the Name and Email address. If the user goes BACK in the browser and tries...

Confirm a deletion (or any action) with Javascript.

11 February, 2012   

JavaScript Code to show a message box or a alert window when page opens

29 January, 2011   

Cufon 101

13 November, 2012   

Creating and maintaining an effective JavaScript toolbox can greatly reduce development time. This script will show you how to include specific snippet modules on individual pages.

A javaScript loop example with Do While loop

22 August, 2012   

This JavaScript code within your web page HTML between your HEAD tags

08 March, 2012   

A javaScript loop example with Break a loop

18 September, 2012   

Get the current title of the page using javascript and store it into a variable