DHTML Tutorial: Window Popup

Sometimes you want a small window to popup, activated by some event such as clicking on something or mouse-over something. Here's how to do it. (view source to see the code)

Click Me

The key points is that you call “window.open()”. The “window” is the DOM Object, and “open()” is one of its method. And, you can use “focus()” method to make sure it came to the front.

Reference: http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp


See also:


Page created: 2005-11.
© 2005 by Xah Lee.
Xah Signet