Welcome to the Webmaster Forum.
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Feb 2010
    Posts
    198
    Rep Power
    4

    Default What is JavaScript?

    hey please friends tell me that what is JavaScript?
    And give some examples of Javascripts. Like give some url which contain javascript.

  2. #2
    Join Date
    Feb 2010
    Posts
    7
    Rep Power
    0

    Default

    well you could try typing the following into your browser (firefox) URL:

    javascript: document.void(alert('test'));
    and then pressing return.

    JavaScript was originally designed by good old NetScape.. back in the days
    JavaScript is an object scripting language that you can use in within your web pages. It's a client side language.


    Contrary to misconception, JavaScript is not Java! These two languages are not at all the same

    To create a simple example containing some JavaScript, copy the following and save it as example.html. Then place this on your site and see what happens...
    <html>
    <head>My First JavaScript</head>
    <body>
    This page contains my first example of JavaScript

    <script type="text/javascript">
    document.write("This message is written by JavaScript");
    </script>

    <script type="text/javascript">
    alert('hello world');
    </script>

    </body>
    </html>
    You've just written you first bit of script in JavaScript.

    Its quite common to call the JavaScript by placing an external reference line from the html head section, this makes the script more global, calling it from other pages, and also keeps the html content cleaner

    and example:


    <html><head><title>My Second JavaScript</title>
    <script type="text/javascript" src="myScrip/helloWorld.js"></script>
    </head>
    <body>
    This page contains my second example of JavaScript
    <script type="text/javascript">doFunction();</script>
    </body></html>
    where doFunction will be defined within the external helloWorld.js JavaScript

  3. #3
    Join Date
    Mar 2010
    Location
    Cyberia and Oz
    Posts
    138
    Rep Power
    4

    Default

    JavaScript is a PITA

  4. #4
    Join Date
    Mar 2010
    Posts
    120
    Rep Power
    0

    Default

    What exactly is Javascript?:
    Javascript is a programming language that is used to make web pages interactive. It runs on your visitor's computer and so does not require constant downloads from your web site

  5. #5
    Join Date
    Mar 2010
    Posts
    60
    Rep Power
    2

    Default

    Javascript is an online coding language for websites, you can use it to interact with a server and variables, it's good for some basic forms and math

  6. #6
    Join Date
    Mar 2010
    Posts
    120
    Rep Power
    0

    Default

    I think that Javascript is a programming language that is used to make web pages interactive. It runs on your visitor's computer and so does not require constant downloads from your web site.

    Example:-
    Everyone's first script

    hello.html

    <HTML>
    <HEAD>
    <TITLE>Barely a script at all</TITLE>
    </HEAD>
    <BODY BGCOLOR=WHITE>
    <H1>
    <SCRIPT LANGUAGE="JAVASCRIPT">
    document.write("Hello, World!")
    </SCRIPT>
    </H1>
    </BODY>
    </HTML>

  7. #7
    Join Date
    Feb 2010
    Posts
    216
    Rep Power
    6

    Default

    I always use to tell people that javascript is like more advanced HTML. Of course with HTML5 coming out I suppose that wouldn't really be true any more.
    News and tutorials for the less tech savvy. gethelpfromageek.com

  8. #8
    Join Date
    Mar 2010
    Posts
    613
    Rep Power
    5

    Default

    By the knowledge of Javascript the web owner would do to himself and to the browsers a lot of good in the sense that he allows the visitor to learn the script then and there.

  9. #9
    Join Date
    Feb 2010
    Posts
    589
    Rep Power
    5

    Default

    to know what is javascript, visit here

    Code:
    http://en.wikipedia.org/wiki/JavaScript
    and to know how it works and get some tutorials visit this link

    Code:
    http://www.javascriptkit.com/

  10. #10
    Join Date
    Feb 2010
    Posts
    198
    Rep Power
    4

    Default

    I heared a lot about Javascript that we can make games with the help of javascript. Is that true.


 

Tags for this Thread

Bookmarks

Posting Permissions

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