View Full Version : simple popup window
SWiSHSource.com
09-27-2002, 04:24 AM
I just need to know how to creat a simple popup window, not the kind where it comes up automatically, but where you click on a link and it comes up with a popup window with a certian size and everything. Thanks!
glenngv
09-27-2002, 04:37 AM
function openPopUp(url,target){
win = window.open(url,target,"location=0,resizable=0,status=0,width=800,height=600");
win.focus();
}
then call it like these:
<a href="javascript:openPopUp('link1.htm','link1')">link 1</a>
<a href="javascript:openPopUp('link2.htm','link2')">link 2</a>
SWiSHSource.com
09-27-2002, 05:08 AM
Thank you very much for your help and time!!! Peace, Michael
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.