Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q680 Is there a way to do these two things : make a link to open a pop up window and specify that one of the two files contained in that pop up window must be open at the anchor specified?

irt.org | Knowledge Base | JavaScript | Frame | Q680 [ previous next ]

Q680 Is there a way to do these two things : make a link to open a pop up window and specify that one of the two files contained in that pop up window must be open at the anchor specified?

In the first page:

<SCRIPT LANGUAGE="JavaScript"><!--
function myOpen(anchor) {
    window.open('popup.htm?' + escape(anchor),'windowName','width=200,height=200');
}
//--></SCRIPT>

<A HREF="javascript:myOpen('myanchor')">Open popup window frameset at anchortext</A>

In popup.htm:

<HTML>

<SCRIPT LANGUAGE="JavaScript"><!--
document.write('<FRAMESET COLS="50%,50%">');
document.write('<FRAME SRC="leftframe.htm' + (location.search ? ('#' + unescape(location.search.substring(1))):'') + '">');
document.write('<FRAME SRC="rightframe.htm">');
document.write('<\/FRAMESET>');
//--></SCRIPT>

</HTML>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.