Glossary Item Box
Changes the background of the selected text to the supplied color.
[JavaScript] pwFormatFontHighlight(pwColor)
This method operates on the current HtmlBox (the HtmlBox that currently has focus). See the MSDN DHTML execCommand method for more information on command identifiers.
[JavaScript] The following example demonstrates using the pwFormatFontHighlight method to change the background color.
<script language="javascript">
<input type='button' value='Click here to change the background color to blue' onclick='pwFormatFontHighlight("blue")'>
</script>
Send comments on this topic.
Documentation version 3.2.0.0.
© 2009 Dart Communications. All rights reserved.