简体   繁体   中英

Load a webpage from another domain and inject javascript

I wish to create a mobile optimized web app by loading a website from a domain( that i do not own) and then running some java script code onto it to modify the layout. How would this be possible as I've read that javascript does not allow cross domain requests.

Would using an iframe and then somehow modify the content of the iframe be possible?

没有骇客就不可能,只有骇客才有可能。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM