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.

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.

To configure WebSEAL to insert the junction cookie JavaScript block between<head> </head> tags (HTML 4.01 compliant), add the -J option with the inhead argument when creating the -J junction. For example (command line fragment):

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).

Parent topic: Control on the junction cookie JavaScript block