Adding code just before the <body>

Dcode warner asked on December 2, 2019 18:20

Is it possible to add a script or tag just before the opening on the

Recent Answers


Brenden Kehren answered on December 2, 2019 20:47

Yes. In your master template (portal I'm assuming), you add a HEAD HTML webpart at the very bottom of the page template. They are loaded in order so if this is at the bottom of the page, it will be the last one loaded before the closing </head> tag.

1 votesVote for this answer Mark as a Correct answer

Dcode warner answered on December 10, 2019 23:02

@brendenKehren Sorry Brenden. My question wasn't formatted very well. What i'm looking for is foe example:

<head>
</head>
<body>
<!--place script tag here directly after the body tag. The first tag after the body-->
 <form method="post" action="/" id="form"> 
</body>

In k7 it looks like this:
<body class="LTR Gecko Gecko71 ENUS ContentBody" >
<form method="post" action="/" id="form"> 
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.