Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile Beginner’s Question

    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

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,633
    Thanks
    0
    Thanked 649 Times in 639 Posts
    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.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • Users who have thanked felgall for this post:

    spacecadet11 (10-04-2012)

  • #3
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile Response

    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

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,642
    Thanks
    6
    Thanked 1,005 Times in 978 Posts
    Quote Originally Posted by spacecadet11 View Post
    Hello. What is the difference between java & javascript?
    http://www.htmlgoodies.com/beyond/ja...JavaScript.htm

    Quote Originally Posted by spacecadet11 View Post
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •