Note: this project is no longer maintained, and there are no plans to port it from WebVR to WebXR.
Fto enter virtual-reality mode
Zwhile in VR mode to zero the sensor
A live demo can be found at hopalongvr.dghost.net.
More information on WebVR, including supported browsers, can be found at WebVR.info.