data-tab-target="features") to each Tab Link. ?tab= parameter from the URL and trigger the corresponding tab. /page-2#sectionID?tab=target, replacing with your actual IDs and tab keywords.To link a button on Page 1 to a specific tab inside a section on Page 2, you need to use a combination of unique tab IDs and URL hash linking. Webflow does not support this natively, so it requires a custom setup with URL hashes and a bit of JavaScript.
#featuresSection).
data-tab-targetpricing, features, etc.
(Do not include <script> tags in Webflow; paste the content directly inside the code block.)
Example JS:
?tab=features and opens the corresponding tab.
```
<script>
document.addEventListener("DOMContentLoaded", function () {
const urlParams = new URLSearchParams(window.location.search);
const tabParam = urlParams.get("tab");
if (tabParam) {
const tabLinks = document.querySelectorAll('[data-tab-target]');
tabLinks.forEach(link => {
if (link.getAttribute('data-tab-target') === tabParam) {
link.click();
}
});
}
});
</script>
```
/page-2#featuresSection?tab=features/page-2 with the actual slug of Page 2.#featuresSection with the section ID containing the tab component.features with the tab target value you assigned.
To link a button from Page 1 to a specific tab on Page 2, add a section ID, use URL parameters to indicate the tab, and apply custom JavaScript on Page 2 to trigger the correct tab on load. This allows a smooth scroll to the section and auto-selection of the desired tab.