Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7021329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:26:07+00:00 2026-05-27T23:26:07+00:00

How can I open a link (any link) within a certain DOM object in

  • 0

How can I open a link (any link) within a certain DOM object in the current page, that is, display the link target’s content inside that very DOM element. I would like to do something that would be achieved using an <iframe> element if it were in the old days, but since <iframe> is going to be obsolete, I want do it without it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:26:08+00:00Added an answer on May 27, 2026 at 11:26 pm

    If I understand you correctly, you’d like to load a new page inside of an existent DOM object inside your page, for example a <div>. If so, I would assume that this is simply not possible without using an iframe, because every other way you’d have to add content to your current document, which would not display correctly as it is not valid to nest <html> tags, and you’d have to execute foreign JavaScript on your own page, and you’d have to replace your own CSS and so on.

    Also, at least if you are trying to display a page that does not lie inside your own domain, you wouldn’t be able to fetch its content with pure JavaScript because of the same origin policy implemented by most (all?) browser JavaScript engines.

    Also, iframes are not really deprecated (anymore? they were only deprecated for the strict versions of HTML4 and XHTML), as you can read here: Are IFrames (HTML) obsolete? They’re back in HTML5 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Normally we can specify a target in the link or use javascript window.open to
I can open the DefaultTemplate.xaml that was installed as part of our TFS 2010
I realise that you can open the google maps app ready for directions by
I have a form that can open a sub form (with ShowDialog ). I
I have MySQL running such that I can open a client command line and
I have an app that will display web pages within a UIWebView. The pages
I know JavaScript can open a link in a new window but is it
In android for an application if you need to open any link default we
I would like to know how I can open a Mp3 file from within
Whenever I open some help within eclipse I get a page saying: Server Error.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.