If I inject through the html method some html code with a script (for
example <div></div><script language="javascript>alert('Hello');</
script>)

A) is the code always executed? (under all the supported browsers)
B) is the code always executed BEFORE the end of the html method? (so
that I can manipulate the global namespace before and after the method
to pass "parameters" to the script code)

(I've read that injecting code with innerHTML could be tricky and I
wanted to know if jQuery implemented the right tricks)

Thanks

Reply via email to