1 2 3 4 5 6 7 8 9 10 11 12
<html><body> <script type="text/javascript"> //function doBold(){ range = document.createRange(); newNode = document.createElement("b"); range.selectNodeContents(document); range.surroundContents(newNode) //} </script> text </body></html>