AlaskanWolf
04-14-2001, 03:52 PM
I would like to add a javascript pop up window if someone clicks on a "more info" button and have it open a small window in the top corner
I also would like to have a "close" button in the window as well and auto close so in case they dont close the window, it dissappers
any ideas of such javascript anywhere???
ksstudio
04-14-2001, 04:06 PM
close window
****paste in <body>
<form>
<input type=button value="Close This Window" onClick="self.close()">
</form>
<form>
<input type=button value="Open New Window" onClick="ANY_NAME=window.open('/index.htm', 'win1','toolbar=no,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=200')">
</form>
Link: <a href="" onClick="ANY_NAME=window.open('/index.htm', 'win1','toolbar=no,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=200'); return false;">Open
New Window</a>
<form>
<input type=button value="Close New Window" onClick="ANY_NAME.close();">
</form>
Link: <a href="" onClick="ANY_NAME.close(); return false;">Close
New Window</a>
ksstudio
04-14-2001, 04:08 PM
** new window
<a href="PARENT WINDOW LOCATION" ONCLICK="window.open('DESTINATION LINK IN NEW WINDOW', 'NewWindow','toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')">Link description</a>
** get more from www.24fun.com (http://www.24fun.com)