0

where to place the data types script.. in head or body?

<script> var price = 55.55; document.write(price); </script> it should be placed in head or body?

1st Jul 2020, 7:16 AM
K.Keerthana
K.Keerthana - avatar
1 Odpowiedź
+ 2
If you want it to run immediately before page has loaded put it in the head if you want to page to load first put it at the end of the body
1st Jul 2020, 7:23 AM
JME