Is there a way to set a JavaScript variable as the content of another HTML page?
I tried:
var X = $(http://www.website.com/home).html()
but it didn't return anything, even though it explains the idea. Som can anyone tell me how to do so please? Also the content of a certain id or class in that website, something like:
var X=$(http://www.website.com/home "#id").html()
It would really help me.
$.getand its relatives, then. Also, read up about the same-origin policy