This method of the WebBrowser class retrieves the width of the Microsoft® Internet Explorer main window.
public synchronized int getWidth();