answersLogoWhite

0


Best Answer

There are a number of ways that help the browser recognise scripts. Scripts can be inside script tags. They can be in events associated with controls, like having an onClick event in a button. Scripts can be in external files that are linked into a html page. Whatever way it is done, if the web designer does it correctly, the browser will recognise and run the scripts.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can the browser recognize the line of code in an HTML document as belonging to a script?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What element embeds a script into an HTML document?

The script tag.


How do you signal a web browser that a following segment of text is a scripting language?

You use the SCRIPT tag. <script type="text/javascript"> alert("This IS JAVASCRIPT!"); </script> You can place the SCRIPT tag anyplace you'd like. Generally, scripts that are being run when the page loads are placed in the HEAD section of the document, while scripts that run after the page loading are placed near the bottom of the document. (This has to do with search engine optimization (SEO)) The script tag is also capable of referencing an external script file using the SRC attribute.


Is there a no right click code that isn't java script?

Maybe with VB-script, if the browser is Internet Explorer.


How to upgrade to a javascript capable browser to register for Facebook?

Just go to one of the related links and download the executable file for your OS, and run it on your computer. The you'll have an up-to-date, JavaScript capable browser.


What is the difference between script and scriptlet?

"script" is an HTML tag used to include JavaScript on a web page. Example: <HTML> <body> <script type="text/javascript"> document.write("hi there"); // javascript interpreted by the browser </script> </body> </HTML> "Scriptlet" is a JSP construct used to include Java in a JSP page. Example: <HTML> <body> <% // this is a scriptlet response.getWriter().write("hi there"); // Java executed on the server %> </body> </HTML> Here the result (an HTML document with the text "hi there") is the same in both cases, but the mechanisms are different - Javascript runs in the browser (any browser), while the JSP scriptlet is executed on the server and needs a server with JSP support. See related links.


Is a small program embedded within an HTML document?

no


Looking at a script how would an actress recognize her dialog?

It will have the name of her character and a colon


What does ASP script return to the browser?

HTML (or JavaScript, CSS, PDF, CSV, whatever)


How do i get rid of this ad covering half of the page i was looking at?

Join or stop the script in your browser


How can you script your ASP code in JavaScript?

Start the document with: <%@ language="javascript" %>


Which HTML tag is used to indicate to the web browser that the HTML page contains a javascript program?

Easy one. <script type="text/javascript"></script>.


How can a reader recognize stage directions in a script?

Often stage directions are either italicized or in parentheses