Share via


DhBrowser Class

Methods | This Package | All Packages

Enables access to Internet Explorer browser functionality.

package com.ms.wfc.html

public class DhBrowser

Remarks

To use this class, call DhWindow.getBrowser, which returns an instance of a DhBrowser object. The following example shows retrieving and displaying all the browser string properties:

public class Class1 extends DhDocument
{

  protected void initForm()
  {
     DhWindow thisWindow = this.getWindow();
     DhBrowser browser = thisWindow.getBrowser();
     DhText t1, t2, t3, t4, t5, t6, t7, t8, t9, t10;
     this.add(t1 = new DhText("AppCodeName = " + browser.getAppCodeName()));
     this.newLine();
     this.add(t2 = new DhText("MinorVersion = " + browser.getAppMinorVersion()));
     this.newLine();
     this.add(t3 = new DhText("AppName = " + browser.getAppName()));
     this.newLine();
     this.add(t4 = new DhText("AppVersion = " + browser.getAppVersion()));
     this.newLine();
     this.add(t5 = new DhText("BrowserLanguage = " + browser.getBrowserLanguage()));
     this.newLine();
     this.add(t6 = new DhText("CpuClass = " + browser.getCpuClass()));
     this.newLine();
     this.add(t7 = new DhText("Platform = " + browser.getPlatform()));
     this.newLine();
     this.add(t8 = new DhText("SystemLanguage = " + browser.getSystemLanguage()));
     this.newLine();
     this.add(t9 = new DhText("UserAgent = " + browser.getUserAgent()));
     this.newLine();
     this.add(t10 = new DhText("UserLanguage = " + browser.getUserLanguage()));
  }