Coming from a Python to JavaScript I was a bit miffed by the lack of functions for some things. I once tried to use am isIn function on an array and found it to be absent. Or at at least it was at the time. This was some time ago back in the early days of ...
If you have a popup window which opens on your home page every time a visitor returns,it can become very annoying. Using cookies,this script can determine if the visitor has been here before,and only open a new window on their first visit to the page. The ...
This script will save all of your form fields in a cookie. It includes all text fields,radio button selections,checkbox values,etc. When your visitor returns,all form fields are automatically repopulated with the same value that they entered on their last ...
This cookie records the visitor's name. It can then be used for identification or other purposes,as needed.userName.jsfunction getCookieVal (offset) { var endstr = document.cookie.indexOf (";",offset); if (endstr == -1) endstr = document....
This cookies records how many times the visitor has visited the page and writes to the page accordingly.visits.jsfunction GetCookie (name) { var arg = name "="; var alen = arg.length; var clen = document.cookie.length; var i ...
What I have provided is a cross browser approach to attach and manage events. IE uses Object.attachEvent to attach an event to an object,whereas Fx uses Object.addEventListener to do the above function. Similarly the functions used for removing an attached...
an example of creating object in javascript,taken from http://www.wdvl.com/Authoring/JavaScript/Tutorial/objects.htmldirect instance of an objectDespite the awkward sound name, a "direct instance of an object" simply means creating a new single object, suc...