Jump to content

Java vs. Javascript


skaterdav85

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...