I have a webpage with a good amount of expandable divs. Since the text is hidden and a person coming in from a web search would have to open each div to check for the content, is there any way I can open the div when the page loads?
For example, consider that I have a webpage named example.com, and in that webpage I have a div with id expandableDiv with a target attribute liked to it as example.com#expandableDiv. Now I search on google about the content in expandableDiv and my website shows up. When I click on it, the div would be hidden. I need the div to open up when the person is coming in from the google search. Hope this explains my issue.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/JuLYq7p
Comments
Post a Comment