'Navigate to page and open details element via id with javascript
I have a monthly calendar view (events-calendar.html) and when the user clicks on a particular date on that page, as an example April 15th, I want the anchor tag to navigate to (events-day.html) and open (details id="april15").
Is this possible?
Thanks in advance.
Solution 1:[1]
Send
<a href='components/bydate.html?view=apr15'>
Apr 15
</a>
Get
window.location.search.substr(1)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | dinesh oz |
