How do you tell the browser that a script is starting? Moreover, how does he know what kind of script is starting? What if the browser doesn?t support JavaScript?
Tutorial Details:
Javascript Introduction
Telling the browser JS is starting
We can?t tell the browser that a JavaScript is starting using some JavaScript code, because he doesn?t know, how to interpret it. We should tell the browser that a JavaScript code is starting that it says that another JavaScript is starting. That?s a paradox. Therefore, we must tell him using some usual code that all browsers can understand. That is HTML. We will use a HTML tag to tell the browser that JavaScript code is starting, and to send it to the JavaScript compiler implemented in the browser.
|