can jquery read the dom elements of external pages?

后端 未结 2 1959
轻奢々
轻奢々 2021-01-23 22:09

Is it possible to read and parse the dom elements of third party websites like cnn.com (for e.g) so that I can get the div, a, p tags and read the position and size information?

2条回答
  •  半阙折子戏
    2021-01-23 22:58

    I think you cannot access other domains' content with javascript due to security reasons. At least in secure browsers...

提交回复
热议问题