Javascript in Hotspot

I’ll preface this by saying I’ve done a lot of Lotuscript, but have never done Javascript.

I have an existing Lotus Notes database. On a page, there’s an image with a hotspot. The onMouseOut and onMouseOver events are already written in Javascript. I want to change the onClick event, so I need to do it in Javascript as well.

All I want to do is prompt the user with a messagebox containing a text message, and then include a new line (i.e. char(10)), and then display the title of the database, another new line, the server name where the database resides, another new line, and the filename of the database.

Can anyone save me a lot of time learning Javascript just to get this code, which I’m guessing is really simply for someone experienced in Javascript.

Thx.

Subject: RE: Javascript in Hotspot

I think You have to put some computed fields on the form (with option “Generate HTML for all fields”) with @DbTitle and @DbName formulas.Then in Your JavaScript event something like this:

var form = window.document.forms[0];

var title = form.DbTitle.value;

var path = form.DbFilePath.value;

alert (title + “\n” + path);

Konrad