...

View Full Version : Beginner’s Question



spacecadet11
10-04-2012, 12:59 AM
Hello. I do not know javascript at all at this time but I am 'dabbling'. Is Java like 'codes' that are 'invisable' that controls how things appear on a web page?

If so..is it also possible to reveal 'hidden' codes on a web page on the internet that are 'by default...' already hidden?

Thanks for any and all responses
Bye
SC

felgall
10-04-2012, 03:31 AM
Are you asking about Java or about JavaScript - they are two completely different things.

With web pages the content is defined using HTML, how it looks and whether it is visible or not is defined with CSS and the behaviour of the page is defined using JavaScript.

Note that not everyone has JavaScript and so anything that starts out hidden may remain hidden. Usually you are better off to start with things visible and use JavaScript to update the CSS to hide whatever doesn't need to be visible for those with JavaScript available.

spacecadet11
10-04-2012, 02:30 PM
Hello. What is the difference between java & javascript? I think js is just about how you control 'text' on web pages..where java is....what?

Right now I am trying to learn the very basics so I can progress further.

Thanks for any and all further responses
Bye
SC

VIPStephan
10-04-2012, 07:36 PM
Hello. What is the difference between java & javascript?

http://www.htmlgoodies.com/beyond/javascript/article.php/3470971/Java-vs-JavaScript.htm



I think js is just about how you control 'text' on web pages..where java is....what?

Very basically:

Java is a programming language that is used to create stand-alone programs or used on a server to generate websites (e. g. compile HTML snippets into one document that is then shown in the browser). You can’t see Java code in a website because it is executed on the server and only outputs HTML, for example, based on whatever conditions are met.

JavaScript is a client-side scripting language (“client” is the user’s computer) used to modify a document after it has been rendered (i. e. is shown in the browser). JavaScript is used to add dynamic functionality to websites, apart from basic stylistic things that CSS can do. For example you can quickly add and remove elements from a website through user interaction or do advanced calculation, form validation on the fly while typing, etc.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum