Lowering document.domain

Posted by Sergej Andrejev on Stack Overflow See other posts from Stack Overflow or by Sergej Andrejev
Published on 2010-04-30T08:04:50Z Indexed on 2010/04/30 8:07 UTC
Read the original article Hit count: 329

What am I doing wrong? According to specs lowering domain with javacript should be possible in IE8 and IE7 but my code only wors in FF and throws Argument Exception in IE

<html xmlns="http://www.w3.org/1999/xhtml" >
<body onload="alert(document.domain); try { document.domain = 'if.se' } catch(e) { alert(e); }; alert(document.domain);">
</body>
</html>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about internet-explorer