Source: /cirosantilli/javascript-browser-example

= JavaScript browser example
{c}
{tag=JavaScript}

* \a[js/confirm-close.html]: https://stackoverflow.com/questions/7317273/warn-user-before-leaving-web-page-with-unsaved-changes
* \a[web-cheat/js-image-load.html]: load an image from JavaScript dynamically: https://stackoverflow.com/questions/226847/what-is-the-best-javascript-code-to-create-an-img-element
* \a[web-cheat/js-image-load-viewport.html]: load an image from JavaScript dynamically when it would become visible on the viewport: https://stackoverflow.com/questions/2321907/how-do-you-make-images-load-only-when-they-are-in-the-viewport
* \a[html/img-load-lazy.html]: https://stackoverflow.com/questions/2321907/how-do-you-make-images-load-lazily-only-when-they-are-in-the-viewport/57389607\#57389607
* \a[web-cheat/esm.html]: ESM modules
  * \a[web-cheat/esm1.js]
  * \a[web-cheat/esm2.js]
* \a[js/keydown.html]: https://stackoverflow.com/questions/16006583/capturing-ctrlz-key-combination-in-javascript

External libraries
* Text editors
  * \a[web-cheat/monaco-editor.html]:
    * https://github.com/microsoft/monaco-editor
    * https://stackoverflow.com/questions/63179813/how-to-run-the-monaco-editor-from-a-cdn-like-cdnjs/63179814\#63179814
* Interactive HTML table sorting
  * \a[web-cheat/tablesort.html]: https://github.com/tristen/tablesort
  * \a[web-cheat/sortable.html]: https://github.com/HubSpot/sortable