BodyTag Property (.NET)

 

Type: String

 

This property tells BrowserHawk to add additional HTML to the <BODY> tag which it sends as part of the test page it loads when detecting extended properties. The most popular use of this parameter is to specify the BGCOLOR tag so that the test page has the same background color as the rest of your site.

 

Tip: To make the extended property test completely transparent, set the BodyTag property to the background color used by your site. For example if your site uses a black background: options.BodyTag = "BGCOLOR=#000000";

 

C# Example:

<%

ExtendedOptions options = new ExtendedOptions();

options.AddProperties("JavaScriptEnabled");

options.BodyTag = "BGCOLOR=#000000"; // causes temporary test page to have a black background

ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);

%>

<html>

JavaScriptEnabled: <% Response.Write(extBrow.JavaScriptEnabled); %>

</html>

 

See Also:

PlageMessage Property (.NET)

PageTitle Property (.NET)