gloeg Posted March 16, 2009 Share Posted March 16, 2009 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 More sharing options...
Ingolme Posted March 16, 2009 Share Posted March 16, 2009 It's not a function. It's a property, therefore remove the parenthesis "()". Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.