Hi All,
Try the example javascript given in this link in IE and Firefox.
<html>
<body>
<script language="JavaS cript">
function function1() {
var myRange = document.select ion.createRange ();
var m = myRange.pasteHT ML('<p>Hello World</p>');
}
</script>
<p>Highlight a part of this text, then click button below</p>
<input id="myB" type="button" value="Click me" onclick="functi on1();">
</body>
</html>
Its works only in IE and not in Firefox.
Is there is any Firefox equivalent coding to achieve the same
functionality which is working good in IE?
Thanks in advance.
Try the example javascript given in this link in IE and Firefox.
<html>
<body>
<script language="JavaS cript">
function function1() {
var myRange = document.select ion.createRange ();
var m = myRange.pasteHT ML('<p>Hello World</p>');
}
</script>
<p>Highlight a part of this text, then click button below</p>
<input id="myB" type="button" value="Click me" onclick="functi on1();">
</body>
</html>
Its works only in IE and not in Firefox.
Is there is any Firefox equivalent coding to achieve the same
functionality which is working good in IE?
Thanks in advance.
Comment