NetTalk Central

Author Topic: script to put after /body  (Read 1462 times)

ntnewbies

  • Full Member
  • ***
  • Posts: 169
    • View Profile
    • Email
script to put after /body
« 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

Jane

  • Sr. Member
  • ****
  • Posts: 349
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: script to put after /body
« Reply #1 on: August 09, 2022, 10:32:52 AM »
xy

Why would you want to do that?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: script to put after /body
« Reply #2 on: August 09, 2022, 10:25:08 PM »
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

ntnewbies

  • Full Member
  • ***
  • Posts: 169
    • View Profile
    • Email
Re: script to put after /body
« Reply #3 on: August 10, 2022, 01:14:30 AM »
@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

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Re: script to put after /body
« Reply #4 on: August 10, 2022, 02:00:56 AM »
Why not put it in the "$(document).ready()"

EMBED: GenerateForm --> 7 Inside <script>

/Niels
« Last Edit: August 10, 2022, 05:09:09 AM by Niels Larsen »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: script to put after /body
« Reply #5 on: August 10, 2022, 10:11:59 PM »
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