My HTML file has a style for fonts I Please help to change the font size it may be late, but I am trying to confirm that What does it return when you run it? FONT {font-size: 11px; } which will load initially when my html is loaded, I would like to change the font-size using the following command
document.execCommand ("fontsize", "", "5"); After the execution, now the font tag has the attribute size = "5" but I can also see the font-size: 11px still in the current style of IE Developer Toolbars. Then the font is not changed.
document.exec comand ('font size, false,' 5 '). In some browsers,
false is not going through the default UI (second argument), the result is not running in the command.
execCommand will return
true / false on the basis of success or failure.
Comments
Post a Comment