View Full Version : Anchor to launch JS from destination

08-24-2010, 07:03 AM
Hi All,

I'm not sure if this is a question for HTML, or rather for JavaScript. I apologize in advance if I am posting in the wrong forum.

In file1.html I have an anchor to file2.html like this:
<a href="file2.html#dest">Destination</a>

In file2.html, the dest is part of a collapsible menu, by default collapsed. A JavaScript script in file2.html manages the expanding and collapsing of the menu.

Is there a way to ask file2.html in the anchor to request a menu expansion, then to scroll down to dest?

Thanks for your advise,

08-25-2010, 06:41 AM
Am I asking the impossible? Is there a workaround to obtain the same functionality?