Snippet Name: Sized Pop-Up Windows
Description: Call it with an href like this:
foo
You can also shorten
"toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1"
to just "resizable"
Comment: (none)
Language: JAVASCRIPT
Highlight Mode: JAVASCRIPT
Last Modified: February 28th, 2009
|
< s c r ipt type="text/javascript" language="JavaScript">
FUNCTION pop(url,w,h) { width=w+20; height=h+20;
options = "width=" + width + ",height=" + height
+
"toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1"
VAR newWin = window.OPEN(url, "pop", options) }
</script>
|