User's guide > Windows and Views > Embedded Browser
Embedded Browser
Methods Introduced:
The methods pfcWindow.Window.GetURL and pfcWindow.Window.SetURL enables you to find and change the URL displayed in the embedded browser in the Creo window.
The methods pfcWindow.Window.GetBrowserSize and pfcWindow.Window.SetBrowserSize enables you to find and change the size of the embedded browser in the Creo window.
* 
The methods pfcWindow.Window.GetBrowserSize and pfcWindow.Window.SetBrowserSize are not supported if the browser is open in a separate window.
The method wfcBrowser.Browser.ExecuteScript executes a Java script on the browser page.
The method wfcBrowser.Browser.ExecuteScriptFromFile executes a Java script file on the browser page.
The method wfcBrowser.Browser.GetId returns a unique identifier of the browser page.
The method wfcBrowser.Browser.GetUrl returns a URL of the browser page.
The method wfcBrowser.Browser.AddActionListener adds a listener object for browser event callback. The input arguments are:
Listener— Specifies the listener which is defined by the class wfcBrowser.BrowserListener.
EventTypes—Specifies the type of the events to listen and is defined by the enumerated data type wfcBrowser.BrowserEventType. The valid value ON_BEFORE_DESTROY specifies the event before destroying the browser window.
Use the method wfcBrowser.BrowserListener.OnBeforeDestroy to return a callback when an embedded browser is destroyed in Creo. The callback is returned for each page of the browser window.
Was this helpful?