Html5 full screen code

Hello!

I have found code in this forum, for html5 going full screen when clicked, using javascript.
But I get an error on web browser!

error

The file is here:
https://s3.amazonaws.com/develephant-html5/fullcanvas.zip

I’m trying but really can’t find the problem although the code is just a few lines.
Could someone please download and check the code?

Maybe the original creator @Develephant might help me? :slight_smile:

Thank you!