document.addEventListener("DOMContentLoaded", function() { // Wait until everything, including images and scripts, is fully loaded. window.onload = function() { // Wait an additional 2 seconds after the page has fully loaded to account for any scripts that might render content dynamically. setTimeout(function() { // Get the URL hash to identify which tab to open. var hash = window.location.hash; if (hash && hash !== '') { // Select the specific tab title that needs to be clicked. var toggleTitle = document.querySelector(hash + ' .elementor-tab-title'); if (toggleTitle && toggleTitle.getAttribute('aria-expanded') === 'false') { toggleTitle.click(); // Simulate a click on the tab title } } }, 2000); }; });