I’ve been reading threads on scaling the html display of a webhtmlviewer. Basically, I’m trying to accommodate a web page in a phone-sized browser screen and it requires so much scrolling left and right that it is difficult to view.
I read where someone suggested using javascript like the line below, but nothing happens. Would you expect something like this to work?
viewer.ExecuteJavaScript “document.body.style.zoom=”“90%”""
WebHTMLViewer is an iframe. So for security reasons, you cannot inject JavaScript if it displays the content of another domain.
You may want to read more about the iframe object at http://www.w3schools.com/jsref/dom_obj_frame.asp
Okay. I’m thinking it’s best to reconstruct my webpages so they are sort of ‘resolution-independent’. I had tables and images that were fixing the width of the page to something too wide.
Thanks!
For what its worth, about resolution independency, you may want to check my solution at
http://rubberviews.com/rubberviewswe.html