PDA

View Full Version : how to use the execCommand in Netscape


kriskishi
05-02-2005, 09:53 AM
hi friends
i have a problem with the execCommand.basically i am designing a online editor for that i am writing the sample code for the BOLD like

<html>
<body>
<script language="javascript">
function boldme()
{
editor.document.execCommand("Bold");
}
</script>

<form name="form1" action="src.php" method="post" target="_blank">
<input type="button" onClick="boldme();" value="B">
</form>
<iframe name="editor" id="editor" width=800 height=600 src="index.htm">
</iframe>
</body>
</html>


the above code is working perfectly with the InternetExplorer 6 but getting the problem with the NetscapeNavigator latest version itself can any one please help to over come this problem???

kishore :confused:

iota
05-02-2005, 10:41 AM
:) Hi kriskishi,

The document.execCommand is one of Microsoft's Proprietary Standards.
ActiveX control is either.
As far as I know, it only runs with Microsoft Internet Explorer.

glenngv
05-05-2005, 01:59 PM
http://www.kevinroth.com/rte/demo.htm