There is sample code here for sending HTML mail. Write the HTML and JavaScript as you normally would. Use vertical bars as the string delimeters in LotusScript, so you can use quotes and curly brackets in the HTML.For example, to demonstrate an alert, you can write Click here.
As you have indicated, there are limitations on JavaScript support in the Notes client, and a user can turn off JavaScript completely in any client. For example, in Mozilla I normally have JavaScript enabled for web pages but disabled for mail and newsgroups. So you cannot rely on JavaScript to deliver an important message. If a JavaScript error spooks a user, the user might think you are some kind of virus and automatically delete all future mail from you.
You evil, evil person;-) (Just a joke for those who miss that wink).
What happens to users who receive the email but do not accept email messages as HTML or use a client that does not support the JavaScript you want to include?
Is there really a vaue add here or might you be better off sending an email with a link to a web page that has the content you want to deliver?
I just sat with a user yesterday that received an email message in Notes that was formatted with JavaScript that failed. What did she do? She DELETED it without reading it, saying if the person culd not make the effort to send an email readble in Notes, she was not going to waste her time trying to read it. And this was not an end user, but a technology savvy mananger.
this is basically to make a point to my boss that including javascript in an email is possible. I know not all email clients will get the message formated and rendered properly, but it is basically a proof of concept.
All I want to do is a little rollover image or an Alert popup.