Is there a way to customize a page layout template so that script is included for HTML but not for compiled help?
Is there a way to customize a page layout template so that script is included for HTML but not for compiled help?
Could you provide any background on what it is you are looking to do? My immediate thought is that you should be able to do this in a roundabout way using Template Properties and multiple Build Profiles - i.e. define your script segment in a Template Property which you then define only in the Web output Profile.
We have some JavaScript that we want at the bottom of every HTML page to track page hit statistics but, we don't want that in the CHM because it results in a popup that says that possibly malicious code was blocked.