Closed Thread Icon

Preserved Topic: Folder Tree Menu Pages that link to <a href="https://ozoneasylum.com/backlink?for=18348" title="Pages that link to Preserved Topic: Folder Tree Menu" rel="nofollow" >Preserved Topic: Folder Tree Menu\

 
Author Thread
Rice
Bipolar (III) Inmate

From:
Insane since: Jun 2002

posted posted 07-08-2002 02:16

I'm not quite sure if my question falls under JavaScript or HTML. I have a folder tree menu (JavaScript 1.2) and the site I'm trying to create is non-frames. I would like to find out how I can make my text links so that onclick, it opens up a new, smaller window (400x450). In this new window, I don't want toolbar, directories, status, menubar, location, not resizable but YES to scrollbars.

Currently, my links are:
<a href="link1.htm" target="_blank">About Link1</a>
<a href="link2.htm" target="_blank">About Link2</a>

and so on.... With the above code, on click of the text link, it opens up a new window. However, I'd like the window to be smaller as specified above along with no toolbar, no menubar, etc.

Thanks!



mjv
Bipolar (III) Inmate

From: Perth, Australia
Insane since: Aug 2000

posted posted 07-08-2002 05:14

Here's my solution. It may not necessarily be the best, but it works!

Put this in between the <head> and </head> tags:

code:
<script language="JavaScript" type="text/JavaScript">
<!--
function openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>



And replace your links code with this:

code:
<a href="#" onClick="openBrWindow('link1.htm','link1','scrollbars=yes,width=400,height=450')">About 
Link1</a> <a href="#" onClick="openBrWindow('link2.htm','link2','scrollbars=yes,width=400,height=450')">About
Link2</a>



Hope this helps!


-James-

[This message has been edited by mjv (edited 07-08-2002).]

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-08-2002 07:41

http://www.gurusnetwork.com/tutorials/html/windowpop_generator.html


Rice
Bipolar (III) Inmate

From:
Insane since: Jun 2002

posted posted 07-08-2002 19:01

Thank you very much!!! Both worked great!!!

« BackwardsOnwards »

Show Forum Drop Down Menu