Toggle Action Cookie Script2. Obtain the Script |
|
Join the DiscussionMore of this FeatureTo add the ability to toggle between two actions to your web page you first need to copy the Javascript code into the head section of your page. Copy the above Javascript and save it to an external file. I called mine toggle.js. We can now link the Javascript into the head of our web page using the following code:
<script type="text/javascript"
src="toggle.js"></script>
The final step is to replace the alert('welcome'); and alert('hello');statements with whatever processing it is that you want to have performed on alternate visits to the page.
Introduction and Sample |
Obtain the Script
|

