Following code will popup a window:
function openPopup(url){
popupW = window.open(url,"Window1","menubar=no,width=700,height=500,toolbar=no");
popupW.moveTo(250,100);
}
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');
rizzz86
No comments:
Post a Comment