Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Wednesday July 26 2017 - 06:07:02

Force Window On Top Solved!

Poster: whaywardj
Dated: Friday December 10 2004 - 16:48:10 GMT

Thanks to Ruth.

Issue: Make secondary window from first menu-click stay on top of main window so 1) menu remains visible; 2) content from subsequent menu-clicks recycles in that window; and 3) it stays on top during content cycling.

Java function in (my) main page is:

Code: Select all

<script language="JavaScript">
var newwindow;
function poptop(url)
   if (window.focus) {newwindow.focus()}

(My) Milonic *.js menu item link configuration is:

Code: Select all

aI("text=IEC/ISO Standards;url=javascript:poptop('')");

Target features are handled in the function statement. On slow machines, it's a little in-elegant but, for my purposes, preferred over having the secondary window open and/or cycle content behind the main window.

Thanks again, Ruth.

Oops! ERROR. I dropped a semi-colon in the menu item string when copying it to the forum. Menu item strings need to read as follows for the "on top" function to be called:

Code: Select all

aI("text=Estimating Documentation Costs;url=javascript:poptop('pdf/estimating.pdf');");

Note the two semi-colons at the end.[/code]

Poster: Ruth
Dated: Friday December 10 2004 - 17:49:08 GMT

You're welcome, I learned something new :D . As to the bottom scroll links. I'm not sure I understand what you meant about that, but I'd think if you didnt' want a new window for each click, you could just make another function like this one on that page and give the window a different name?