Hi guys!
I am using this code to do a pop up window, but what code do I have to put in so it positions itself centre, centre?
I really want to use the same script, but just to MODIFY it.
Can NE1 help?
I want to Modify this one as the dark recesses of my neanderthal brain seeks knowledge! (But it takes a (stone) age for me to understand anything!)
please help a lesser being! just think about that good karma you'd be stockpiling
Thanks loads!
dirtystim
here's the code
===========pop up code===========
<html>
<head>
<title>Untitled</title>
<script language ="javascript">
win="";
function pop_up(){
win = window.open(" "dep", "height=100,width=200", hotkeys="no"
;
}
function closeDep() {
if (win=="undefined"
{}else{
if (win.open) win.close();
}
}
</script>
</head>
<body onUnload="closeDep();">
<a href="#" onclick="pop_up();">Yahoo</a>
<br><br><br>
<a href="#" onClick="closeDep();">Close the window</a>
</body>
</html>
I am using this code to do a pop up window, but what code do I have to put in so it positions itself centre, centre?
I really want to use the same script, but just to MODIFY it.
Can NE1 help?
I want to Modify this one as the dark recesses of my neanderthal brain seeks knowledge! (But it takes a (stone) age for me to understand anything!)
please help a lesser being! just think about that good karma you'd be stockpiling
Thanks loads!
dirtystim
here's the code
===========pop up code===========
<html>
<head>
<title>Untitled</title>
<script language ="javascript">
win="";
function pop_up(){
win = window.open(" "dep", "height=100,width=200", hotkeys="no"
}
function closeDep() {
if (win=="undefined"
if (win.open) win.close();
}
}
</script>
</head>
<body onUnload="closeDep();">
<a href="#" onclick="pop_up();">Yahoo</a>
<br><br><br>
<a href="#" onClick="closeDep();">Close the window</a>
</body>
</html>