K
ken quirici
Hi,
I'm a beginner working thru the javascript tutorial at htmlgoodies.com.
The following works on netscape 7.1 and IE:
***************************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
<TITLE>Testing html and javascript</TITLE>
<script type="text/javascript">
function open_win()
{
window.open("opened.html","joe",config="height=300,width=300");
}
</script>
</HEAD>
<BODY>
<H1>TESTBED</H1>
<form>
<input type="button" value = "Open Window"
onClick = "open_win()">
</form>
</BODY>
</HTML>
************************************************************
The following works on IE but not netscape 7.1 (it brings up the main window
but not the one window.open is supposed to open).
***********************************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
<TITLE>Testing html and javascript</TITLE>
</HEAD>
<BODY>
<H1>TESTBED</H1>
<script type="text/javascript">
window.open("opened.html","joe",config="height=300,width=300")
</script>
</BODY>
</HTML>
****************************************************
I hope this isn't something really obvious.
What am I missing?
Thanks.
Ken
I'm a beginner working thru the javascript tutorial at htmlgoodies.com.
The following works on netscape 7.1 and IE:
***************************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
<TITLE>Testing html and javascript</TITLE>
<script type="text/javascript">
function open_win()
{
window.open("opened.html","joe",config="height=300,width=300");
}
</script>
</HEAD>
<BODY>
<H1>TESTBED</H1>
<form>
<input type="button" value = "Open Window"
onClick = "open_win()">
</form>
</BODY>
</HTML>
************************************************************
The following works on IE but not netscape 7.1 (it brings up the main window
but not the one window.open is supposed to open).
***********************************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
<TITLE>Testing html and javascript</TITLE>
</HEAD>
<BODY>
<H1>TESTBED</H1>
<script type="text/javascript">
window.open("opened.html","joe",config="height=300,width=300")
</script>
</BODY>
</HTML>
****************************************************
I hope this isn't something really obvious.
What am I missing?
Thanks.
Ken