html parse - The loaded HTML defines the environment for our program. There is the
documentobject and the
windowobject. Our code is loaded into the window object by
documentobject and stores its data/functions in the
windowobject. Note that the global object is
window; you don't need to prefix objects with
windowto access them.
loadedevent fires by hooking into it with
- additional scripts can be loaded by instantiating a
<script>element and appending it to the
document, which will make it load.
- element modification of DOM objects is how we make an interactive interface.
- messages can be sent between the document itself and web workers
- websockets can fire events on data received, or return new data on request.