Jump to content

Document.cookie.length() Is Not A Function


gloeg

Recommended Posts

why does firefox say: document.cookie.length() is not a function??

function getCookie(stof){waarde=""if (document.cookie.length()>0)	{	beginnummer=document.cookie.indexOf(stof+"=");	if (beginnummer !=-1)		{		eindnummer=document.cookie.indexOf(";",beginnummer)		if (eindnummer==-1)			{			eindnummer=document.cookie.length()			}		waarde=unescape(document.cookie.substring(beginnummer,eindnummer))		alert(waarde)		}	}return waarde}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...