Inserting the JavaScript block for HTML 4.01 compliance (inhead)
The -J junction option modifies HTML documents returned from junctioned servers by inserting a JavaScriptâ„¢ block that sets a junction identification cookie on the browser interpreting the document. By default, the JavaScript block is inserted at the beginning of the page, before any HTML code.
About this task
This prepended location of the JavaScript on the page can cause HTML rendering problems in some environments. Additionally, the default prepended location does not comply with HTML 4.01 specifications. The HTML 4.01 specification requires <script> tags to be located within the <head> </head> tags.
Procedure
pdadmin> server task instance-webseald-host create ... -j -J inhead ... The xhtml10 argument also addresses compliance with other HTML 4.01 and XHTML 1.0 specifications. See Inserting an XHTML 1.0 compliant JavaScript block (xhtml10).
The trailer argument can be used when compliance with HTML 4.01 specifications is not required. See Appending the junction cookie JavaScript block (trailer).