how can I remove my appended script because it causes some problems in my app.
This is my code to get my script
var nowDate = new Date().getTime();
v
What you can do is remove the script immediately after it has been loaded:
var nowDate = new Date().getTime();
var url = val.redirect_uri + "notify.js?nocache=" + nowDate + "&callback=dummy";
var script = document.createElement('script');
script.src = url;
script.onload = function( evt ) {
document.body.removeChild ( this );
}
document.body.appendChild(script);
Anyway I think it is a better idea to append the script to the header (where all the other scripts reside) than to the body.