Jump to content

Java vs. Javascript


skaterdav85
 Share

Recommended Posts

You use Java to create web applets that operate independantly of the rest of the web page (a bit like a Flash document), or as a server-side language like PHP. JavaScript is completely client-side, and can interact directly with the HTML DOM of the web page and change things such as styles and text. By the way, JavaScript is not based at all on Java (but they are both C-based), the Java in the name is due to a marketing deal between Netscape and Sun Microsystems (which is why Microsoft initally had to call their version JScript). Its official name is ECMAscript.

Link to comment
Share on other sites

You use Java to create web applets that operate independantly of the rest of the web page (a bit like a Flash document), or as a server-side language like PHP. JavaScript is completely client-side, and can interact directly with the HTML DOM of the web page and change things such as styles and text. By the way, JavaScript is not based at all on Java (but they are both C-based), the Java in the name is due to a marketing deal between Netscape and Sun Microsystems (which is why Microsoft initally had to call their version JScript). Its official name is ECMAscript.
What are examples of java applets? Are they embedded in the html document?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...