I got this javascript and i want to close the current window when i click the link and open another window to load the website.....can i do that?
<style type="text/css">
<!--
body,td,th {
color: #000000;
}
body {
background-color: #000000;
}
a:link {
color: #000000;
}
a:visited {
color: #000000;
}
-->
</style><center>
<script>
function PopupCenter(pageURL, title,w,h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no,scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}
</script>
<p> </p>
<p> </p>
<center>
<p> </p>
<p><a href="java script:void(0);" onclick="PopupCenter('http://www.dawnguild.net/dawn.html', 'myPop1',1500,1199);"><img src="high_low_res.jpg" border="0" width="729" height="572" align="middle"
style="width: 800px; height: 800px; display: block; position: relative; top: 100px;"></a></p>
</center>
<script>
window.open("testpage.html","win")
window.close()
</script>
That will work.
_______________________________
http://www.squidoo.com/brochure-printing
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)