views:

23

answers:

1

Im trying to load some code from an external domian with js. with script tags the browser is (according to firebug) loading the file. This is the code:

$('<script
type="plaintext"src="http://www.google.de"&gt;&lt;/sc'+'ript&gt;').appendTo('body');

You cann see after loading the content of the file in this case an html document in firebug but is there any way to access this data for example with js?

A: 

No, it's not possible. It would be possible if the src were on the same domain, by using XMLHttpRequest instead.

As a side note, type should be text/plain.

Andy E