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

  • Home
  • SEARCH
  • 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 8811087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:16:34+00:00 2026-06-14T03:16:34+00:00

Possible Duplicate: Javascript or JQuery get html content from external site I want JavaScript

  • 0

Possible Duplicate:
Javascript or JQuery get html content from external site

I want JavaScript to get a web page, say the Google homepage, and retrieve its (obviously) HTML code. I have no idea of how to do it, mainly because I’m not really into JavaScript-ing. If possible, I’d use solutions which don’t require libraries (eg jQuery) or light ones, due to speed issues.

  • 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-06-14T03:16:35+00:00Added an answer on June 14, 2026 at 3:16 am

    As Mitch correctly said, it is not possible for JavaScript to download HTML from an arbitrary web site.

    I am not sure what your requirements are, but here are some ideas that can handle less general cases:

    1. If you want to load HTML from a page on a server that you control, then you can set CORS headers on the server, and then your JavaScript will be able to load from it (easily on modern browsers, and with some hacks on older browsers)
    2. If you just want to display HTML from the other web page, but not need to do any processing of it, then you can use an iframe to embed the the other web page in your page.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Get all Attributes from a HTML element with Javascript/jQuery I need to
Possible Duplicate: Extracting the content of an element from an external page Is there
Possible Duplicate: Prevent any form of page refresh using jQuery/Javascript how can i prevent
Possible Duplicate: Generate a Hash from string in Javascript/jQuery Can anyone suggest a simple
Possible Duplicate: caching JavaScript files I'm using JQuery 1.7.2 into JSF page. I call
Possible Duplicate: Format numbers in javascript I have number 2.3455555555555555 I want to get
Possible Duplicate: get all available fonts from google font api How we can retrieve
Possible Duplicate: Get query string values in JavaScript Say if,i've a URL like this
Possible Duplicate: Ajax, javascript send variable to another page, on click Hello, Lets say
Possible Duplicate: jQuery $.get or $.post to catch page load error (eg. 404) Maybe

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.