# Sandbox.WebSurface

Enables rendering and interacting with a webpage

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Properties

- [`Cursor`](/api/Sandbox.WebSurface/Cursor)
- [`HasKeyFocus`](/api/Sandbox.WebSurface/HasKeyFocus): Tell the html control if it has key focus currently, controls showing the I-beam cursor in text controls amongst other things
- [`InBackgroundMode`](/api/Sandbox.WebSurface/InBackgroundMode): Enable/disable low-resource background mode, where javascript and repaint timers are throttled, resources are more aggressively purged from memory, and audio/video elements are paused. When background mode is enabled, all HTML5 video and audio objects will execute ".pause()" and gain the property "._steam_background_paused = 1". When background mode is disabled, any video or audio objects with that property will resume with ".play()".
- [`IsLimited`](/api/Sandbox.WebSurface/IsLimited)
- [`OnTexture`](/api/Sandbox.WebSurface/OnTexture): Called when the texture has changed and should be updated
- [`PageTitle`](/api/Sandbox.WebSurface/PageTitle)
- [`ScaleFactor`](/api/Sandbox.WebSurface/ScaleFactor): DPI Scaling factor
- [`Size`](/api/Sandbox.WebSurface/Size): The size of the browser
- [`Url`](/api/Sandbox.WebSurface/Url): The current Url

## Methods

- [`Dispose`](/api/Sandbox.WebSurface/Dispose)
- [`TellChar`](/api/Sandbox.WebSurface/TellChar): Tell the browser a unicode key has been pressed
- [`TellKey`](/api/Sandbox.WebSurface/TellKey): Tell the browser a key has been pressed or released
- [`TellMouseButton`](/api/Sandbox.WebSurface/TellMouseButton): Tell the browser a mouse button has been pressed
- [`TellMouseMove`](/api/Sandbox.WebSurface/TellMouseMove): Tell the browser the mouse has moved
- [`TellMouseWheel`](/api/Sandbox.WebSurface/TellMouseWheel): Tell the browser the mouse wheel has moved
