Hi all,
Here's the code I've come up with. I deliberately left off an expiration date since I want the cookie to expire when the browser is closed.
<html>
<head>
<script type="text/javascript">
function setCookie(name,value)
{
document.cookie=name+"="+value;
}
</script>
</head>
<body>
<a href="#" onClick="createCookie('Role',Parent)";>Parent</a>
<a href="#" onClick="createCookie('Role',Student)";>Student</a>
</body>
</html>
I've tried many many things but can't figure it out. I don't understand what I'm doing wrong.
Any help would be appreciated.
Thanks