title: Google Chrome showing javascript security error
body: <p>I need help resolving this Google Chrome Error..."Uncaught Error: SECURITY_ERR: DOM Exception 18"</p>
  
  <p>Here is the code.</p>
  
  <pre><code>//Get Cookie
  function get_cookie (cookie_name)
  {
      var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );
      if (results)
      return ( unescape ( results[2] ) );
      else
      return null;
  };
  </code></pre>
  
  <p>Many thanks,
  C</p>