Learn more
Scrivito is proudly made by JustRelate Group in Berlin, Germany, and Wrocław, Poland.
Scrivito is proudly made by JustRelate Group
  • Product
    See a Demo
    Scrivito Customer Support
  • Widgets
  • Developers
    Documentation Overview
    Editor’s Guide
    Admin’s Guide
    Quickstart Guides
    Extending the Example App (Basic)
    Extending the Example App (Advanced)
    Key Concepts
    Integrations
    Web Development Guides
    Advanced Use Cases
    Going Live
    JavaScript SDK API
    JavaScript SDK Release Notes
    Contact Customer Support
  • Sign up
  • My Scrivito
  • EN
    EnglishDeutsch
  • Developers
  • JavaScript SDK API
  • Link
  • isExternal()

isExternal()

Does the Link object point to an external location?

link = new Scrivito.Link({url: "https://scrivito.com"});
if (link.isExternal()) {
  link = link.copy({target: "_blank"});
}

Returns

Boolean - true if the Link points to an external location.

  • Documentation Overview
  • Editor’s Guide
  • Admin’s Guide
  • Quickstart Guides
  • Extending the Example App (Basic)
  • Extending the Example App (Advanced)
  • Key Concepts
  • Integrations
  • Web Development Guides
  • Advanced Use Cases
  • Going Live
  • JS SDK API
    • Top-Level API
    • Custom Attribute Types
    • Obj
    • Widget
    • Binary
    • FutureBinary
    • Link
    • Editor
    • Team
    • MetadataCollection
    • ObjSearch
    • ObjFacetValue
    • SiteContext
    • Errors
    • React Components
    • Content not yet Loaded Error
  • JS SDK Release Notes
  • Contact Customer Support
  • new Link
  • copy
  • hash
  • isExternal
  • isInternal
  • obj
  • query
  • queryParameters
  • rel
  • target
  • title
  • url
Scrivito
  • Start Free Trial
  • CMS Overview
  • Why Scrivito?
  • Technology
  • Integrations
  • Partners
  • Pricing
Support
  • Contact Support
  • Dashboard Login
  • Documentation
  • Release Notes
  • Widget Marketplace
  • Service Status
Legal
  • About Us
  • Imprint
  • Privacy Policy
  • Transparent Information
  • Terms of Service

© 2021 – All rights reserved Scrivito is proudly made by JustRelate Group in Berlin, Germany, and Wrocław, Poland.