skaterdav85 Posted February 13, 2008 Share Posted February 13, 2008 Im new to web development, but can someone tell me the difference between java programming and javascript in web development? Link to comment Share on other sites More sharing options...
Synook Posted February 14, 2008 Share Posted February 14, 2008 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 More sharing options...
skaterdav85 Posted February 14, 2008 Author Share Posted February 14, 2008 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 More sharing options...
Synook Posted February 14, 2008 Share Posted February 14, 2008 Yes, they are embedded similar to Flash through the use of <object>. This game - http://www.javagameplay.com/tankHunterb.html - is a Java applet. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.