Can't switch on designMode in Internet Explorer
Posted
by Charles Anderson
on Stack Overflow
See other posts from Stack Overflow
or by Charles Anderson
Published on 2010-05-17T15:55:56Z
Indexed on
2010/05/17
16:00 UTC
Read the original article
Hit count: 288
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?
© Stack Overflow or respective owner