title: document cookie / Got an error "Illegal document.domain value"
body: <p>while using document cookie </p>
  
  <pre><code>&lt;script typ="text/javascript"&gt; 
          document.domain="example.com"; 
  &lt;/script&gt;
  </code></pre>
  
  <p>I got an error.i don't know the exact problem.</p>
  
  <blockquote>
    <p>Error: uncaught exception: [Exception... "Illegal document.domain
    value" code: "1009" nsresult: "0x805303f1
    (NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN)" location: ""]</p>
  </blockquote>