Trickey Problem, I think.

windows

Guest
<!-- m --><a class="postlink" href="http://www.geocities.com/for_the_love_of_lisa/tester">http://www.geocities.com/for_the_love_of_lisa/tester</a><!-- m --><br />
<br />
If you go to my web site above then you will notice a green scoll box thing. It took me forever how to figure that one out but nevermind that now. I need to make it so that whenever you click on a link inside the green box that it will popup in a new window. I know that they are two different webpages and that I am using frames in a weird way but I was wondering if there was a script I could use for the page in green that would just automatically make all links that are clicked appear in a whole new page or something.<br />
<br />
Sorry if I didn't use a term right or something.<!--content-->Set up the links inside this window this way...<br />
<br />
a href=http://www.htmlforums.com/archive/index.php/"page.ext" target="_new"<!--content-->html-wise, md hall's got the idea<br />
<br />
but if you are wanting to control that other window such as if it has scrollbars, toolbars, addresbar, statusbar, etc as well as the width, height and position on the screen then javascript would be the way to go...<br />
<br />
if you choose the javascript path, i'd change all of the href's in the anchors to:<br />
&nbsp;&nbsp;&nbsp;href=http://www.htmlforums.com/archive/index.php/"javascript:openMyNewWindow('thisPage.html');"<br />
<br />
and then have that function execute it:<br />
<br />
<head><br />
<title> title goes here... </title><br />
<script><br />
function openMyNewWindow(loadThisURL){<br />
window.open(loadThisURL, "The message that appears in the new window's titlebar", "configuration goes here like width=100,height=100,scrollbars=0,etc,etc,etc,etc")<br />
}<br />
</script><br />
</head><br />
<br />
<br />
you can also find out more information on the specifics for window.open both in This Thread (<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=21136&highlight=window.open">http://www.htmlforums.com/showthread.ph ... indow.open</a><!-- m -->) <br />
and by visiting your favorite search engine like google, yahoo, lycos, etc and type in ( including the quotes ):<br />
<br />
javascript "window.open"<!--content-->Thanks.<!--content-->
 
Back
Top