skaterdav85 12 Posted February 13, 2008 Report 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? Quote Link to post Share on other sites
Synook 47 Posted February 14, 2008 Report 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. Quote Link to post Share on other sites
skaterdav85 12 Posted February 14, 2008 Author Report 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? Quote Link to post Share on other sites
Synook 47 Posted February 14, 2008 Report 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.