delete current selection
var _s = dojo.doc.selection; if(_s){ //IE if(_s.type.toLowerCase() != "none"){ _s.clear(); } return _s; }else{ _s = dojo.global.getSelection(); _s.deleteFromDocument(); return _s; }