Load URL contents into a variable

I am looking for a way in javascript/jquery to load the contents of a URL into a variable.
Who is Participating?
Gurvinder Pal SinghConnect With a Mentor Commented:
use load() method to get the content of a URL into a div, and then you can take it from that div

also check get() method's success event
Blowfelt82Author Commented:
Ok this looks promising, as far as you know would this work for external websites outside of my own domain?
Gurvinder Pal SinghCommented:
Nope, only for the same domain....for external domain, you need to get the content from your server side script
All Courses

From novice to tech pro — start learning today.