Google Chrome showing javascript security error
Posted
by Clint
on Stack Overflow
See other posts from Stack Overflow
or by Clint
Published on 2010-04-18T10:58:58Z
Indexed on
2010/04/18
11:03 UTC
Read the original article
Hit count: 312
I need help resolving this Google Chrome Error..."Uncaught Error: SECURITY_ERR: DOM Exception 18"
Here is the code.
//Get Cookie
function get_cookie (cookie_name)
{
var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );
if (results)
return ( unescape ( results[2] ) );
else
return null;
};
Many thanks, C
© Stack Overflow or respective owner