what does it mean when javascript is placed after </html>?
I tested it, and it executed right after the page load, before i even take any action?
javascript behind html closing tag?
Page 1 of 11 Replies - 278 Views - Last Post: 13 August 2012 - 03:38 PM
Replies To: javascript behind html closing tag?
#2
Re: javascript behind html closing tag?
Posted 13 August 2012 - 03:38 PM
It doesn't "mean" anything, of course it would be executed as soon as it's loaded, unless you're subscribing to some DOM event (like it's loaded).
It would have the same effect as placing it before the </body> tag, apart from the latter would be somewhat more valid than placing it after </html>, which would make malformed HTML in any instance.
It would have the same effect as placing it before the </body> tag, apart from the latter would be somewhat more valid than placing it after </html>, which would make malformed HTML in any instance.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote




|