[thelist] Target anchor in popup frameset
Rachel Starr
rachel at pinkcandyproductions.com
Fri Oct 3 15:37:53 CDT 2003
I want to open a frameset in a popup window in which one frame (of 2) is
scrolled to a specific anchor point. What do I need to add to the below code
to get the LINK to open a popup window with the content frame filled with
content.html#anchor ?
Currently, I have the following code:
**frameset.html code**:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Identity</title>
</head>
<frameset frameborder=0 border=0 framespacing=0 rows="50,*">
<frame src="border.html" name="border" scrolling=no noresize>
<frame src="content.html" name="content" scrolling=yes noresize>
</frameset>
<noframes>
<body>
Viewing this page requires a browser capable of displaying frames.
</body>
</html>
**Javascript in page that calls the popup window**:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Blah</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/javascript">
<!--
function openPop(){
window.open('frameset.html','popup','top=0,left=0,width=503,height=310,scrol
lbars=no,toolbar=no,location=no,directories=no,status=no,resizable=no');
}
//-->
</script>
<body bgcolor="#FFFFFF" text="#999999" >
<p>blah blah blah<a href="javascript:openPop()">LINK</a></p>
</body>
</html>
More information about the thelist
mailing list