JavaScript onLogin Code Demo

This page shows how you can run some JavaScript code when a user logs in to a Domino database. Kind of like having an onLogin event available in JavaScript.

If you see a yellow box below this paragraph it's because you've just logged in. If you reload the page again the message will vanish. It only appears on the first page you view after logging in!

To help you test this code there's a login form below (unless you're logged in already) and here's a link to reload the page and here's one to logout

Login

What's the point?

You could do all sorts of things with the new "onLogin" event. Mainly using Ajax you could check for "New message since your last visit" or just log each login and who/when it was.


Cookie contents: