Clone Project

External Link Opening Strategy

Created by
Website In A Week
Similar Projects
Oops! Something went wrong while submitting the form.

0 Comments

Be the first to leave a comment.
Loading
User is typing...
No Name
Set
4 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
No Name
Set
2 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
Load More
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Load More
Description:  
AI Description

This component implements a strategy for handling external links based on the user's device. On desktop, external links open in a new tab, while on mobile devices, they open in the same tab to enhance user experience. This approach addresses the clunky navigation issues often encountered on mobile browsers.

Key Features:

  • Automatically detects device type (mobile or desktop) using JavaScript.
  • Sets external links to open in a new tab on desktop and in the same tab on mobile.
  • Excludes 'tel' and 'mailto' links from this behavior to maintain expected functionality.

Design Elements:

  • Utilizes a clean layout with a focus on usability.
  • Incorporates a responsive navbar that adapts to scrolling and menu states.
  • Features a modern button group for various link types, enhancing interactivity.

Potential Use Cases:

  • Websites with numerous external resources, such as blogs or news sites.
  • E-commerce platforms that link to product reviews or external vendors.
  • Corporate sites that provide links to partner organizations or resources.

Conclusion: The Dynamic Link Opening Strategy component effectively improves user experience by adapting link behavior based on device type, making it a practical addition for various web projects.

Description from Webflow:  
External links should open in a new tab on desktop, but the same tab on mobile. Why? Mobile browsers are still clunky and navigating between different tabs is more difficult than going back.
Tags from Webflow: 
links,  anchorlinks,  newtab,  sametab,  mobilelink,  desktoplink,  dynamiclink
.