Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1570 How can I use onLoad to check the value of a cookie?

You are here: irt.org | FAQ | JavaScript | Cookie | Q1570 [ previous next ]

Try something as simple as:

<body onLoad="var crumb=unescape(document.cookie); if (crumb.indexOf('myvalue') != -1) alert('Welcome Back!')">

©2018 Martin Webb