View Full Version : Popup Window Function
Jasonb61
11-02-2002, 04:16 PM
Could someone please make me a .js file that has a function for a popup window in it so all i have to do on my pages is call the function from the .js file... I tried to make my own but I got all confused and I'd really be happy if someone would make one for me... for the popup function could you implement arguments for 'URL', 'Width', 'Height', and 'Pop Once Per Session'.. thanks!
-Jason
chrismiceli
11-02-2002, 04:23 PM
i am not good with cookies but here is an example without the once per session effect.
test.js //js file
fucntion winpop() {
window.open("blah.com","hello","whatever you want");
}
<html> //page
<head>
<script language="javscript"src="test.js">
</script>
</head>
<body>
<input type="button" value="whatever" onClick="winpop()">
cg9com
11-02-2002, 07:00 PM
in addition, the "whatever you want" part could have this in it.
width=100 height=100 toolbar=0 location=0 menubar=0 status=0 directories=0 scrollbars=0 resizable=0 copyhistory=0
configure as needed
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.