Javascript to change style in body on client

Hi,

I want to enable my Notes client users to change the font size they are seeing. To do this, I’ve put a Style sheet into my form with a body{} set on it. This alters the font-size fine.

However, when I try and change the font-size set using javascript I run into problems. This is what I have at present:

document.body.style.font-size=“20pt”

brings up an error saying document.body has no properties.

Subject: javascript to change style in body on client

No can do – the Notes client is not a web browser, and Notes Rich Text is not HTML. What you see rendered in the Notes client is the result of Notes Rich Text being modified according to your style sheet into new Notes Rich Text BEFORE being displayed.

In the Notes client, Javascript only gives you access to the window object (you can reload, change location, etc.), to images (limited to swapping sources when image resources are used), and to form elements (fields and buttons).

Users can change font sizes globally using the FontSizeAdjust= parameter in their notes.ini file (see the accessibility section in Notes Help).