I have code is this jsFiddle
I have it in a script called AutoPolicy.js at the same location, which I'm trying to call using a bookmarklet:
javascript: (function(){document.body.appendChild(document.createElement('script')).src='http://localhost:43911/Scripts/AutoPolicy.js';})();
When I run this in chrome (not tried other browsers yet), I get an error:
Uncaught SyntaxError: Unexpected token ILLEGAL Sorry - I can't seem to find any more information on the error.
Waat is causing this error and why does it run on jsFiddle but not when called from the bookmarklet?
Thanks
Davy