Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Window trouble

Status
Not open for further replies.

BobbaFet

Programmer
Feb 25, 2001
903
NL
Hi all,

I wrote this script, there is something wrong with it since it doesn't open a new window but it doesn't give an error either.

What's supposed to happen is this:
- Open a new window called "Settings"
- Write the frameset away to "Settings"
- Load banners.htm
- Load the other website



<script language=&quot;JavaScript&quot;>

function openframe(website)
{
settings = window.open('',&quot;settings&quot;,&quot;toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=512,height=384&quot;);
settings.document.write(&quot; <html><head><title>Cas Wegkamp's HomePage</title></head> &quot;);
settings.document.write(&quot; <FRAMESET ROWS=\&quot;15%,85%\&quot; frameborder=false framespacing=\&quot;0\&quot;> &quot;);
settings.document.write(&quot; <FRAME SRC=\&quot;banners.htm\&quot; noresize> &quot;);
settings.document.write(&quot; <FRAME SRC=\&quot;&quot;+website+&quot;\&quot; noresize> &quot;);
settings.document.write(&quot; </html> &quot;);
}

</script>

</head>
<body link=&quot;blue&quot; alink=&quot;blue&quot; vlink=&quot;blue&quot; text=&quot;black&quot;>

<a href=&quot;#&quot; onClick=&quot;openframe(<a href=&quot;#&quot; onClick=&quot;openframe(<a href=&quot;#&quot; onClick=&quot;openframe(
 
You just have forgotten to close your frameset. Also you have divided into 2, but defined three frames - so one will not display (maybe intentional ;))
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top