January 2017
Beginner to intermediate
550 pages
10h 6m
English
You know that JavaScript programs need a host environment. Most of what you learned so far in this book was related to core ECMAScript/JavaScript and can be used in many different host environments. Now, let's shift the focus to the browser as this is the most popular and natural host environment for JavaScript programs. In this chapter, you will learn the following topics:
XMLHttpRequest objectTo include JavaScript in an HTML page, you will need to use the <script> tag as follows:
<!DOCTYPE> <html> <head> <title>JS test</title> <script src="somefile.js"></script> </head> <body> <script> var a = ...
Read now
Unlock full access