Is it possible to check the content of an external site using JavaScript?
-
Is it possible to pull data from elements on an eternal site such as <title>, <h1>, <h2>, etc using JavaScript.
-
Answer:
JavaScript is limited by same origin policy and therefore cannot access external or remote site content.
Rick Waldron at Quora Visit the source
Other answers
Only if you make an AJAX request to your server which can then do anything any computer can do, including fetching data from an external site, and passing that back in the AJAX response. There's even sites like http://jsonlib.com that present JSONP APIs to do exactly that, so you can do cross-domain requests without writing any server-side code.
Han Wei
Related Q & A:
- How to uninstall Firefox add-on using javascript?Best solution by Stack Overflow
- How to connect to a Pervasive Database using javascript?Best solution by Stack Overflow
- How to redirect a site to external site?Best solution by Stack Overflow
- Is it possible to print web content on thermal printer?Best solution by stackoverflow.com
- How to get current YouTube video url using JavaScript?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.