[jQuery] Any server status if use script tag for XSS?
Hi,
I would like to call crossite script.
So I use the script tag technique (create script tag, assign src and append to head) to do so.
But unlike xmlhttprequest, I cannot get any response status from it.
So I just wonder if there is anyway I can detect if the remote script is not available?
I tried to use try-catch, which works on Firefox but not IE. Code:
$(document).ready(function(){
try{
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "<a href="http://thisurldoesnotexist/dsfsdlfjk.js">http://thisurldoesnotexist/dsfsdlfjk.js
</a>";
document.appendChild(s);
}
catch(e){
alert("any error");
}
});<br clear="all">
--
Best Regards,
Jacky
網絡暴民 <a href="http://jacky.seezone.net">http://jacky.seezone.net</a>