window.open not working...

Hi,
I have this simple code

<html>
<body>
<script language="javascript">
function Open()
{
window.open('test2.html','aaa','width=50,height=50,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no');
}
</script>
<input type="button" value="open" onclick="javascript:Open();"/>
</body>
</html>


it opens the window, but it seems that it's not changing the size of the new opened window.

why is that? :ehh: ...

Thanks in advance,
Avi.
[635 byte] By [AviLaviad] at [2007-11-19 21:06:39]
# 1 Re: window.open not working...
well,
it seems to work on FireFox & IE, but not on Avant Browser...
I'll check Avant help...

Avi.
AviLaviad at 2007-11-8 0:22:43 >
# 2 Re: window.open not working...
Well, first off you do have a technical scripting error. You named a user declared JavaScript function, the name of a JavaScript subroutine.

The following code should be universal.

<html>
<body>
<script language="javascript">
function openwin(){
url = "test2.html";
winname = "aaa";
winproperties = "width=50,height=50,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no";
window.open(url, winname, winproperties);
}
</script>
<input type="button" value="Open" onclick="openwin()">
</body>
</html>
PeejAvery at 2007-11-8 0:23:44 >
# 3 Re: window.open not working...
Thanks - its working ...
Say, is there a way to pass the "Active content warning" of IE when i load the page?
(i don't want to hurt or spam any computer...)

any idea?
Avi.
AviLaviad at 2007-11-8 0:24:55 >
# 4 Re: window.open not working...
Thanks - its working ...
Say, is there a way to pass the "Active content warning" of IE when i load the page?
(i don't want to hurt or spam any computer...)

any idea?
Avi.
Why do you need to do that when users still want to see pages with active contents ?
Mulan180 at 2007-11-8 0:25:49 >
# 5 Re: window.open not working...
Say, is there a way to pass the "Active content warning" of IE when i load the page?
Could you clarify a little more?
PeejAvery at 2007-11-8 0:26:52 >
# 6 Re: window.open not working...
when i ran javascript in my html files the IE poped up its upper warning box for Active Content...

After playing with this a little i noticed that its only does it when i ran the html page on local, if i put it on my web server it ran ok with no messages ...
i guess it invloved with local station security.

anyway,
it works because my html files are for the web and not for local stations.

Avi.
AviLaviad at 2007-11-8 0:27:51 >
# 7 Re: window.open not working...
i guess it invloved with local station security.
You are completely correct. If you look under Internet Options and the security settings, you will notice that the local system has less restrictions because it is your own computer. If a webserver was allowed to run anything it wanted, viruses would rule the computer world.

You can change these restrictions on your own computer to not receive this message but that could be a security hole for you! A large hole.
PeejAvery at 2007-11-8 0:28:56 >