Monday, January 11, 2010

javascript Popup window

Useful javascript code for window popup:

Following code will popup a window:

function openPopup(url){
popupW =,"Window1","menubar=no,width=700,height=500,toolbar=no");

moveTo() method sets the location of popup window on screen.

To open this popup window from a link following code will be used:

a href="#" onclick="javascript:openPopup('url');


No comments: