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:
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: