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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -