PDA

View Full Version : automatically pop to this



cellophanecore
September 12th, 2003, 10:49 AM
What I am looking to do is have a page pop up to a fixed size window and then have:
toolbar=no,status=no,menubar=no,location=no,scroll bars=yes,resizable=no

I know how this can be done if the link is clicked but I want this when someone
types in this page direct it will perform the function I mentioned. Below is
the script I am using for the window to go to a fixed size.

<script language="javascript">

var X_coord = 0
var Y_coord = 0

width = screen.width;
height = screen.height;

X_coord = width - 640;
window.resizeTo(640, 400);
window.moveTo (X_coord, Y_coord);
</script>

blah-de-blah
September 12th, 2003, 11:00 AM
Originally posted by cellophanecore
I want this when someone types in this page direct it will perform the function I mentioned.

What do you mean there ?!?! :-\

El Phantom
September 12th, 2003, 01:42 PM
Just make it a function, then, in your body tag

<body onLoad = "javascript:functionName()">

--EP