I am building a website using templates and apex pages. In my apex page I have the option applybodytag and applyhtmltag set to false and I use the <head>
and <body>
tags in my template page.
Every page that has a <apex:form>
I get this piece of code after the closing html tag:
<script type="text/javascript">Sfdc.onReady(function(){
SfdcApp && SfdcApp.Visualforce && SfdcApp.Visualforce.VSManager && SfdcApp.Visualforce.VSManager.vfPrepareForms(["j_id0:fgTemplate:j_id67:j_id68:formnews"]);
});</script>
I understand that this code must be there, so my question is: Is it possible to change the location where the code appears, like before the </body>
tag? W3C validator doesn't like <script>
after </html>
.
thanks
Attribution to: Nelson
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/34105