Does anyone have an idea why the following JavaScript codes work without problems in Firefox and work on IE7 rather than IE8? I have no clue, and I appreciate any hint :-)
I added the code as a favorite item to my Internet Explorer. Thus, clicking on this favorite element should execute the code and upload the JavaScript file that is on my server and add it to the website that is currently loaded in the browser.
javascript:void((
function(){
var%20e=document.createElement('script');
e.setAttribute('type','text/javascript');
e.setAttribute('src','http://www.mydomain.com/js/bookmarklet.js');
document.body.appendChild(e)
}
)())
Thanks for any help and happy coding :-)
source
share