PDA

View Full Version : script modiy


stevan
01-06-2003, 02:37 AM
Is the a way to add position to it ???

Like from the left and top in px

Here is the script

<script>

//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts

function openpopup(){
var popurl="thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,")
}

openpopup()

</script>

Thxs Steve

boywonder
01-06-2003, 03:37 AM
for IE...
"width=400,height=338,top=100,left=100"
I forget what it is for NS and other browsers.... screenx/y or something... I'm sure someone else will volunteer that info.

chrismiceli
01-06-2003, 04:02 AM
not sure about that in ns, you could use the moveTo() method.
[cde]
<script>
//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,")
winpops.moveTo(x,y); //absolute position of the top left corner of the browser
}
openpopup()

</script>
[/code]

glenngv
01-06-2003, 05:12 AM
http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html