When exporting WebGL and trying to open it locally on your machine, you may notice that it does not work with some browsers.
Google chrome by default does not run Java Script files locally.
But it still works without a problem with uploaded WebGL models, so it shows WebGL models that are on the internet.
For testing locally, you can use firefox browser which by default can run local Java Scripts and show WebGL files.