javascript - How can I get script after end of <html> tag -


have this:

<html>    <head></head>    <body></body> </html>  <script id="ajaxify-data" type="application/json">   .... <script> 

how can script element? dom functions $("#ajaxify-data"), document.getelementbyid("#ajaxify-data") dont work

p.s.: saw script on site. can`t in consolt? possible?

please, note element outside < /html > tag not rendered, not valid logic put element of webpage outside of considered end of webpage. if paste code in https://validator.w3.org/#validate_by_input receive error "document type not allow element script here".

so, fine if put script right before closing tag. $(body).append() function work.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -