NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: ntnewbies on August 09, 2022, 05:26:46 AM
-
hi,
is there a place where i can put script after /body?
i have noticed that in pageheader/pagefooter, there is option before /body but cant find after /body
regards,
jason
c11
nt12.45
-
xy
(https://en.wikipedia.org/wiki/XY_problem)
Why would you want to do that?
-
So by default the script code, generated by calls to the p_web.Script method, are added at the end of the body, just before the /body tag.
It could also be made to go after the /Body, or even after the /html.
Do you have any reason for the preference of one over the other?
cheers
Bruce
-
@jane xy agree
@bruce i am creating content management system to build pages where customer's IT team requested an option to place script after /body
I know its recommended to put before /body but i am just leaving the option open to customer.
jason
-
Why not put it in the "$(document).ready()"
EMBED: GenerateForm --> 7 Inside <script>
/Niels
-
Hi Jason,
>> where customer's IT team requested an option to place script after /body
cool. I guess then please ask them for the specific reasoning, and pass that back. If there's a valid reason then it's worth doing.
cheers
Bruce