Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    SxN
    SxN is offline
    New Coder
    Join Date
    Aug 2010
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Anchor to launch JS from destination

    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,
    SxN

  • #2
    SxN
    SxN is offline
    New Coder
    Join Date
    Aug 2010
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Am I asking the impossible? Is there a workaround to obtain the same functionality?

    Thanks,
    SxN


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •