Click to See Complete Forum and Search --> : Window Properties when opened


markconner
12-11-2002, 11:12 AM
I would like to open a window in full screen mode when loaded up automatically using autorun on a CD.

I can open a standard window ("parent") which then has a link that opens the "child" window in full screen size using an open.window javascript.

However, I would like to skip the "parent" window and link and have the "child" window open with the full screen, no toolbars, etc properties without going through the "parent" window.

I would guess that the size, toolbars, etc properties must be in the "child" window itself rather than in listed in the "parent" window but I can't find anything that explains how to do it.

I really hope someone can help.

Thanks
Mark

khalidali63
12-15-2002, 11:56 PM
Well, Here is a hack,if you are interested.
create an "autorun.inf"
file
with the following code
[autorun]
open=parent.html

this should open the parent html page,
then in the parent page put the following code in the head section after title tags

<head>
<title>Untitled</title>
<script>
onload=OpenNewWindow;
function OpenNewWindow(){
window.open("new.html","new","scrollbar=no,addressbar=no");
}
</script>
</head>

What it will do is as soon as parent is opend it actually instantaneously will call the new.html which will be page you actually wanna show,the whole process should be fast enough to give u the illusion of opening the disired page automatically..
Let me know if u have n e questions
:-)

Khalid

khalidali63
12-15-2002, 11:59 PM
Oh btw,if you want the page to open in a full page mode,then
in the function just b4 you write the code to open window get the screen size (width and height and set the window width and size accordingly

function OpenNewWindow(){
window.open("new.html","new","width=600,height=475,scrollbar=no,addressbar=no");

}

:-)

cheers

khalid