Open a JS PopUp Window from a forms button


This example uses buttons instead of anchor tags to associate a window opening function with an event. The principle is the same. We also use more traditional "in-line style". I.e. in the associated JavaScript there is no init function. More examples are in the same directory

The "openWindow" function takes a URL as a parameter, i.e. we can use the same function to open any URL we like. See the associated JS code.


DKS - Last modified: Sat Apr 5 17:05:44 CEST 2008