function setItal() { iWin.focus(); iWin.document.execCommand("italic", null, ""); var aaa = iWin.focus() alert(aaa); }