michaelmueller4321 Posted April 7, 2020 Share Posted April 7, 2020 Hello! I use this Accordion script: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_accordion_symbol How to open an Accordion section from an external link, like: https://www.test.com/test.html#section1 Thank you very much. Michael Link to comment Share on other sites More sharing options...
michaelmueller4321 Posted April 14, 2020 Author Share Posted April 14, 2020 Can everyone help me? Link to comment Share on other sites More sharing options...
dsonesuk Posted April 15, 2020 Share Posted April 15, 2020 Give each button a id ref representing hash name: url hash #section1, button id="section1" Then add this after function Note: this wont work in try it example as it uses frames var x = location.hash; if(document.querySelector(x)){ document.querySelector(x).click(); } Link to comment Share on other sites More sharing options...
michaelmueller4321 Posted April 16, 2020 Author Share Posted April 16, 2020 THANK YOU! I will try it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now