Communicating with the console through JavaScript


show more Communicating with the console through JavaScript provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the JavaScript: Enhancing the DOM show less
please wait ...

Communicating with the console through JavaScript

In the last movie, we saw how we can issue commands to HTML page from within the browsers console. In this movie, we're going to take a look at how to communicate with the console from within a JavaScript document. So I'm going to go to the HTML document for this page. And, at the very bottom, I'm going to add a script tag. And that script tag is going to call a document called myscript.js. Now, that document is inside an underscore folder and inside a JavaScript folder, and it's called myscript.js. So, I'll save this, and then I can close my index HTML document and work on the myscript.js file.

In the early days of JavaScript, the most common way of debugging your software was through the alert message. It looks something like this and let me go ahead and save this. Switch back to my HTML page and just refresh the browser. You can see the alert comes right up. That really gets your attention. But it's not very useful. Especially if you're testi...

Communicating with the console through JavaScript
Video duration: 7m 31s 2h 3m Intermediate

Viewers:

Communicating with the console through JavaScript provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the JavaScript: Enhancing the DOM

Subjects:
Developer Web
Software:
HTML JavaScript
Author:
please wait ...