Is it possible to use any javascript command to change the current font size in a UIWebView (content editable, of course)? I wrote a popup that list font sizes in picas (from 9 to 64), and would like to set the font size to this setting, not to the traditional HTML font-size setting from 1 to 7.
Share
[webview stringByEvaluatingJavascriptFromString:@“foo()“];EDIT: So your real question is “What javascript command should I use to change the font size of my HTML?” or something like that…
document.getElementByIdwill return an element by its ID. You can then use theelement.style.fontSizeproperty to change its font size.