Forum Announcement

Welcome to the new CNET Forums! Please don't panic. You are not in the Twilight Zone, you are experiencing the new CNET forums platform! Please click here to read the details. Thanks!!

Web Hosting, Design, & Coding

Question

Java & JavaSript

by SpaceCadet11 / October 4, 2012 1:44 AM PDT

Hello. I am doing some rudimentary 'dabbling' at this time with 'JavaScript'. I am an absolute begginer.

Just a little 'semantics' to start off with. Somebody mentioned to me that both Java & JavaSc. are different...

I am pretty sure that J.S. is "just for" controlling how 'text' is displayed on a 'web page'. I was dabbling with a tutorial recently..and it instructed me to start that process using a notepad program I have on my computer..then having a sampling of text..by itself showing up on the screen 'in a certain' manner. Is that the main or only way ( using notepad) that J.S. is used or applied to 'web page construction?

Some web pages already have J.S. embedded into the web page that you might be viewing..but is usally hidden.

Is there a 'function' key that you can depress that would 'reveal' these hidden..JavaSripts or controls?

What is Java? by itself? Are they 'controls' that control how other things show up..besides text on 'web pages'?

Thanks for any and all responses
Bye
SC

Answer This Ask For Clarification
Discussion is locked
You are posting a reply to: Java & JavaSript
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Java & JavaSript
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Answer
Re: java and javascript
by Kees_B Forum moderator / October 4, 2012 1:58 AM PDT
In reply to: Java & JavaSript

Indeed, Java and Javascript are different languages. Java is compiled into class files, which are executed by the Java runtime. Javascript is interpreted by a browser.

Javascript can do MUCH more than controlling how a webpage is displayed. You'll learn about that when studying. For example: http://www.webresourcesdepot.com/25-amazing-javascript-games-some-fun-and-inspiration/ has games written in Javascript.

It depends on the tool you use for making a webpage how to enter Javascript code in it. Notepad is a very basic tool. But you can use any other webdesign tool that supports it.

How to see the source of a webpage depends on the browser. It isn't a function key but a menu option.

Kees

Collapse -
In addition
by Sovereign Forum moderator / October 4, 2012 8:00 AM PDT

there are a handful of great JavaScript libraries out there and that allow you to get things done by writing less code. One of those libraries is called jQuery. It's good to have a basic JavaScript foundation, but you'll often find that websites rely on this libraries. It makes sense, too, because you don't have to reinvent the wheel each time you want to do something simple that has been done before or people do a lot.

~Sovereign

Collapse -
Answer
Limits are set by us. Example.
by R. Proffitt Forum moderator / October 4, 2012 8:27 AM PDT
In reply to: Java & JavaSript
Collapse -
Answer
Java
by Khanalabhi / November 15, 2012 1:13 PM PST
In reply to: Java & JavaSript

Java, for what you are asking, is a programming language that lets you create programs or apps that are not limited to running on the web-browser. As long as you have on your Operating System of choice, JVM, the programs written in have can be compiled and run. You can use Java to create dynamic websites as well. However, unlike JavaScript, which runs on your browser, Java would run on the server - where the website is actually hosted. There are occasions where JavaScript is used to communicate with Java on the server. I guess I just wanted to point out they can and do coexist.
Abhi.

Popular Forums
icon
Computer Help 47,885 discussions
icon
Computer Newbies 10,322 discussions
icon
iPhones, iPods, & iPads 3,188 discussions
icon
Security 30,333 discussions
icon
TVs & Home Theaters 20,177 discussions
icon
HDTV Picture Setting 1,932 discussions
icon
Phones 15,713 discussions
icon
Windows 7 6,210 discussions
icon
Networking & Wireless 14,510 discussions

Tech Tip

Tired of your tricky Wi-Fi password?

Stop trying to memorize a complicated sequence of numbers and letters. Learn how to change the default password.