And it won't work.
Browsers enforce what is known as the "same origin policy".
There is a way around this FOR YOUR OWN COMPUTER ONLY, but not for any code that will be published on the internet.
There are also ways around this using server side code. Something as simple as a proxy server, for example, can allow you to *look* like you are doing this.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.