Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Tutorial on JavaScript Variable Passing

Share this post!
 Vote this!

One of the big questions people have is how they can carry information across pages. User A makes a choice on one page and then goes to another. How can I "remember" what his or her choice was? Well, the best way is to set a cookie. The cookie is placed right on the user's computer and can be recalled again and again. I have a tutorial on doing just that right here.

The problem is that many people are scared of cookies. They don't like them and feel they're an invasion of their privacy. OK, fine. So now how do I get information across pages? Well, you could do it through one page spawning another, then another, then another. That would allow JavaScript variables to be transferred, but that opens a lot of windows.

To attempt to solve this little dilemma, I offer this down and dirty JavaScript method. Try this:

More...

0 comments:

Post a Comment