|
Script Category : JavaScript
Script Sub Category : Windows And Frames
This JavaScript example allows you to center the window on the screen by first determing the dimensions of the screen and the window. The link makes the popup window be 400 * 400 px, with scrollbars, and the "this.href" takes the href info out of the link and put it into the script. The link is good if you don't have javascript turned on because it works just like a normal link. The onclick comand tells javascript enabled browser to reference a ja vascript (that would be the NewWindow function) and the return false tells the browser not to procede with the normal link.
|
|
|