G
G
Gura2017-01-06 19:03:49
JavaScript
Gura, 2017-01-06 19:03:49

How to get the content of a third party site tag using js?

The question arose, how to get the content of, for example, the title tag of a specific site?
For example, there is a site site.com, you need to use js to get the title of the page.
As I understand it, you need to parse the entire page, and then display the contents of the title.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Uno, 2017-01-06
@Noizefan

I agree with the previous colleague, but personally I see it this way: parsing the necessary data using a PHP script and loading it onto your page with AJAX.
For me, this is the easiest method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question