PCheese
09-17-2001, 08:55 AM
I'm trying to code a pop up window. Usually not a problem. Only this one has to have a status bar so that users can see it is secure. (Not reassuring enough unless they see the little padlock).
Try as I might I can't get it to pop up with a status bar. Can anyone edit the code to help little old me? Purlease?
<script language ="javascript">
function pop_up(h,w,where){
var winX = (screen.width/2)-(w/2);
var winY = (screen.height/2)-(h/2);
size="height=" + h + ", width=" + w + ",top=" + winY + ", left=" + winX;
win = window.open(where, "dep", size, hotkeys="no");
}
</script>
Thanks in advance - also - if you can make it so that you can't min/max it too that would be great.
PCheese.
P.S. I've tried sizable="no" and status="yes" but I'm not sure I've got them right...
P.P.S. There's a shiny red apple for the kiddy who gets it right.
Try as I might I can't get it to pop up with a status bar. Can anyone edit the code to help little old me? Purlease?
<script language ="javascript">
function pop_up(h,w,where){
var winX = (screen.width/2)-(w/2);
var winY = (screen.height/2)-(h/2);
size="height=" + h + ", width=" + w + ",top=" + winY + ", left=" + winX;
win = window.open(where, "dep", size, hotkeys="no");
}
</script>
Thanks in advance - also - if you can make it so that you can't min/max it too that would be great.
PCheese.
P.S. I've tried sizable="no" and status="yes" but I'm not sure I've got them right...
P.P.S. There's a shiny red apple for the kiddy who gets it right.