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="JavaScript">
function openframe(website)
{
settings = window.open('',"settings","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=512,height=384"
settings.document.write(" <html><head><title>Cas Wegkamp's HomePage</title></head> "
settings.document.write(" <FRAMESET ROWS=\"15%,85%\" frameborder=false framespacing=\"0\"> "
settings.document.write(" <FRAME SRC=\"banners.htm\" noresize> "
settings.document.write(" <FRAME SRC=\""+website+"\" noresize> "
settings.document.write(" </html> "
}
</script>
</head>
<body link="blue" alink="blue" vlink="blue" text="black">
<a href="#" onClick="openframe(<a href="#" onClick="openframe(<a href="#" onClick="openframe(
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="JavaScript">
function openframe(website)
{
settings = window.open('',"settings","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=512,height=384"
settings.document.write(" <html><head><title>Cas Wegkamp's HomePage</title></head> "
settings.document.write(" <FRAMESET ROWS=\"15%,85%\" frameborder=false framespacing=\"0\"> "
settings.document.write(" <FRAME SRC=\"banners.htm\" noresize> "
settings.document.write(" <FRAME SRC=\""+website+"\" noresize> "
settings.document.write(" </html> "
}
</script>
</head>
<body link="blue" alink="blue" vlink="blue" text="black">
<a href="#" onClick="openframe(<a href="#" onClick="openframe(<a href="#" onClick="openframe(