tadaw79
10-21-2003, 06:14 AM
I have a script that allows me to set the size of each popup windows independently, how can i modify this script so that i can set the position of the window also ? I have pasted the script below:
<script type="text/javascript">
function openWindow(url,h,w){
window.open(url,"","height="+h+",width="+w+",scrollbars,status");
}
</script>
This is in the body
<a href="http://" onclick="openWindow('products.html','400','300');return false">Open window</a>
<script type="text/javascript">
function openWindow(url,h,w){
window.open(url,"","height="+h+",width="+w+",scrollbars,status");
}
</script>
This is in the body
<a href="http://" onclick="openWindow('products.html','400','300');return false">Open window</a>