...

View Full Version : SecondWindow



mori
04-11-2003, 08:42 PM
My PC is working with "Windows98.second edition" and "Internet
Explore 5.50".

From the window of "Page.html" ( located on the desktop ),
I need to open a "SecondWindow", where to display the
"File.html" (located on the desktop too).

"Page.html" incorporates a JavaScript.

In a first test, Page.html was as follows.

<HTML>
<HEAD>
<TITLE>SecondWindow</TITLE>
<script language="JavaScript">
<!--
open("File.html","SecondWindow")
//-->
</script>
</HEAD>

<BODY>
</BODY>
</HTML>

When I clicked on "Page.html", no SecondWindow was created.

In a second test, I have changed the "File.html as follows:

<HTML>
<HEAD>
<TITLE>SecondWindow</TITLE>
<script language="JavaScript" type="text/JavaScript">
<!--
function openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
//-->
</script>
</HEAD>
<BODY onLoad="openBrWindow('File.html','SecondWindow','');">
</BODY>
</HTML>

In this test too, when I clicked on "Page.html", no SecondWindow
was created.
--------------------------------------------------------

Why? Where are my errors?

Thanks for your help.

A1ien51
04-11-2003, 09:13 PM
helped if you used the right syntax of window.open() not open

beetle
04-11-2003, 09:50 PM
Alien51,
open() is fine. window is implied, just as with alert(), location, print(), etc.

mori ,
Are you sure you have javascript enabled?

mori
04-11-2003, 11:17 PM
Per Beetle
Many other JavaScripts are working very well.
Anyhow, as can I check if Javascript is enabled ?

Skyzyx
04-11-2003, 11:37 PM
If any script works anywhere on the entire internet, you have JavaScript enabled. It's on by default, and typically, you have to go completely out of your way to turn it off.

If you haven't done that, it's probably on.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum