I m tried with this code
Code:
function highlight() {
var range, sel;
// IE case
if (document.selection && document.selection.createRange) {
range = document.selection.createRange();
//range.execCommand("Bold", false, null);
range.execCommand("BackColor", "false", "yellow");
Leave a comment: