This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The frameType read-only property of the Client interface indicates the type of browsing context of the current Client. This value can be one of auxiliarytop-levelnested, or none.


var myFrameType = Client.frameType;




Specification Status Comment
Service Workers
The definition of 'frameType' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic support
Chrome Full support 43Edge Full support 17Firefox Full support 44
Full support 44
Notes Service workers (and Push) have been disabled in the Firefox 45 & 52 Extended Support Releases (ESR).
IE No support NoOpera Full support 30Safari No support NoWebView Android Full support 43Chrome Android Full support 43Edge Mobile No support NoFirefox Android Full support 44Opera Android Full support 30Safari iOS No support NoSamsung Internet Android Full support 4.0


Full support  
Full support
No support  
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
See implementation notes.
See implementation notes.

Document Tags and Contributors

Contributors to this page: fscholz, chrisdavidmills, jpmedley, kscarfone
Last updated by: fscholz,