Can't switch on designMode in Internet Explorer
- by Charles Anderson
The following code works in Firefox 3.6, but not in Internet Explorer 8:
<html>
<head>
<title>Example</title>
<script type="text/javascript">
function init() {
alert(document.designMode);
document.designMode = "on";
alert(document.designMode);
}
</script>
</head>
<body onload="init()">
</body>
</html>
In FF the alerts show 'off', then 'on'; in IE they're both 'Off'.
What am I doing wrong?