TVUI DOM

 

Go Back...


The TVUI DOM is accessible through the name "tvui".


Fields
bookmarkpopup Provides access to the bookmarkpopup DOM (when bookmark popup is open).
bookmarks Provides access to the bookmarks DOM.
findpopup Provides access to the findpopup DOM (when find dialog is open).
FITTOWIDTH Defines the Fit-To-Width zoom level.
history Provides access to the history DOM.
settings Provides access to the settings DOM.
tvtoolbar Provides access to the toolbar DOM.
Methods
findNext(str) Function to find the next occurrence of the given string in the viewport. Parameter is the text string to be located.
findPrevious(str) Function fo find the previous occurrence of the given string in the viewport. Parameter is the text string to be located.
getCurrentPage() Function to have viewport return the URL of the current page being displayed. Returns a string.
goBack() Function to have viewport go back in browser history.
goForward() Function to have viewport go forward in browser history.
goHome() Function to go to the home page.
gotoURL(url) Function to have viewport go to the given URL. Parameter is a string representing the URL of the page to load.
reload() Function to reload the current page in the browser.
setZoomLevel(level) Function to set the current zoom level. Parameter is a value from 0 to 100, or tvui.FITTOWIDTH.
showBookmarks() Function to request the bookmarks panel to be displayed.
showBrowser() Function to request the browser to be shown.
showHistory() Function to request the history panel to be displayed.
showSettings() Function to request the settings panel to be displayed.


Top of the page

Go Back...

Return to Start