PDA

View Full Version : Pop up window


florida
11-12-2002, 11:51 AM
I have a pop up window that works great but I want it to pop up to the top of my screen. It currently pops up to the bottom. Any advice on how I can do this?


<script>
function openpopup(){
var popurl="http://website/mysite.htm"
winpops=window.open(popurl,"","width=655,height=600,status,menubar,resizable,")
}

</script>
<h3>Pop up link</h3>
<a href="javascript:openpopup()">My Link<!-- -->
</a>

jolietjake
11-12-2002, 12:14 PM
Well, what do you want? to put the window on the top (pixel (0,0)) of the screen or on the top over the other windows?

The solution is easy in over cases:

To put the window on the top of the screen change your window var:

winpops=window.open(popurl,"","left=0,top=0,width=655,height=600,status,menubar,resizable,")


To put the window over the other windows put this code:

winpops.focus();

Hoping it helps

Jolietjake. Master of Blues & Rythm:cool:

florida
11-12-2002, 12:37 PM
Thanks!