answersLogoWhite

0

Where is JavaScript executed?

Updated: 8/9/2023
User Avatar

Wiki User

13y ago

Best Answer

No. JavaScript is downloaded into the client's browser and executed there.

With one caveat. Apache has a server-side JavaScript module that reached public experimental phase. It proved the concept, but saw little (if any) actual real world use.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

Either in a browser, as part of an HTML document, or standalone using one of the JavaScript engines listed in the related Wikipedia-link.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

On the browser. JavaScript is a Client Side Scripting Language like HTML and runs on the browser and not on the server as Server Side Scripting does.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

It is executed in your browser.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Where is JavaScript executed?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What happens during an onclick event in javascript?

Whatever method is attached to the event, is executed.


What does javascript this mean?

In javascript, the word "this" refers to the ¢«Ê«_owner¢«Ê« of the function being executed. Put another way, "this" means the object that a function is a method of.


Is JavaScript code executed when the page is loaded or when instructed to by the web code?

That depends. If you just put some javascript code somewhere (like document.write('hello')) it will be executed on page load. However, you'll mostly want to use functions; you then call those functions on certain events (like a button onclick) to execute their code.


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.


What is a javascript tutorial?

A JavaScript tutorial contains instructions that will teach you how to code in JavaScript.


What languages can a browser understand?

HTML, CSS, & JavaScript.


What are built-in javascript classes?

Javascript does not have classes


How do you sort in javascript?

Javascript can help in browseing


How old is Javascript?

Javascript was created in 1995.


How do you insert PHP code into JavaScript?

PHP is server-side code which means that the code is executed on the web server. The pages are dynamically created and sent to the user's browser. JavaScript is a client-side code which means that it runs on the user's computer after the page has been sent from the server. It is possible to combine PHP commands within JavaScript commands. You would mainly use this in setting up starting variables for your JavaScript. Example: ; …etc --> Another option is that you may consider using Ajax which allows you to dynamically call server-side code from JavaScript.


Do you need java compiler to execute HTML programs written in javascript?

No, Java and JavaScript are nothing to do with each other, JavaScript is a form of EMCAScript, not Java. Every modern browser comes with a JavaScript engine that is used to understand JavaScript. so there is no need for it, no.


Is JavaScript or Dreamweaver better?

Not comparable. JavaScript is a programming language. Dreamweaver is an application (which you can use to create pages with javascript, html, etc.)