Activity Stream
48,167 MEMBERS
61006 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1.     
    #1
    The King of Kings
    Website's:
    rukidding.org thetechnews.org

    Smile Basic JavaScript Tutorials



    Basically I have joined a University Where i am being taught Javascript,C,C++,ASP.net and all those stuff so i would be sharing all tutorials here too

    So i will be making as many tuts i can and help around and as its a thing for helping so i would like all the "Ub3r" Coders to help around as well.


    Mind Freak Reviewed by Mind Freak on . Basic JavaScript Tutorials http://dl.dropbox.com/u/26836391/J/header.png Basically I have joined a University Where i am being taught Javascript,C,C++,ASP.net and all those stuff so i would be sharing all tutorials here too :) So i will be making as many tuts i can and help around and as its a thing for helping so i would like all the "Ub3r" Coders to help around as well. http://lulzimg.com/i22/5e3ce1.png Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    allgames2k.com games2k.me Moviesondownload.com
    Looking Forward to iT!
    Adspots on Allgames2k.Com - 6000 U/V. PM ME!

  4.     
    #3
    The King of Kings
    Website's:
    rukidding.org thetechnews.org

    Smile Objective : 1



    Objective:
    Use Javascript "document.write()" statements to produce the following page output

    Commands to be used

    1.document.write()

    Output



    Coding To be Used :

    Code: 
    <html>
    <head>
    <script language="javascript">
    document.write("<h1>Hi KWWH This is MindFreak</h1>");
    document.write("This page has been developed by using Simple Javascript coding");
    </script>
    </head>
    </body>
    </body>
    </html>
    Well as per my way of coding a html or a javascript page goes i always write off the basic structure of the coding so that no probs occur later on.

    Code: 
    <html>
    <head>
    <title></title>
    <script language="javascript">
    </script>
    </head>
    <body>
    </body>
    </html>
    We have used document.write() to show the above output

    Javascript Coding is mostly or always done within the header tags
    Document.write is used to display a value on the page.
    HTML snipets can also be used within the ()
    after every coding its very important to end with a ";"



  5.     
    #4
    The King of Kings
    Website's:
    rukidding.org thetechnews.org

    Smile Objective : 2



    Objective

    Write a program to accept username and display it message with welcome greeting.

    Commands to be used

    1. prompt
    2. alert
    3. variable

    Output





    Coding to be used

    Code: 
    <html>
    <head>
    <title>Display Message</title>
    <script language="javascript">
    var Name = prompt('Enter Your Name:',"");
    alert('Welcome ' + Name)
    </script>
    </head>
    <body>
    </body>
    </html>
    MessageBox's are of various types but here we would be using 2 of them


    • Prompt
    • Alert

    By Using Prompt we would ask the user for their input it would be defined as a variable as we have used the prompt value by assigning it to a variable

    After that we will use alert msgbox to display the variable aka the user's input.



  6.     
    #5
    The King of Kings
    Website's:
    rukidding.org thetechnews.org

    Smile Objective : 3



    Objective

    Write a program to display a confirmation box to confirm whether the name entered in the prompt window is correct as shown below

    Commands to be used

    1. prompt
    2. confirm
    3. variable

    Output



    Coding to be used

    Code: 
    <html>
    <head>
    <title>Display Message</title>
    <script language="javascript">
    var Name = prompt('Enter your name:',"");
    confirm('Your Name is '+ Name + '; is it correct?');
    </script>
    </head>
    <body>
    </body>
    Here We Are assigning prompt to the variable "Name" and we are using users input in the prompt box and displaying it in the confirm box



  7.     
    #6
    Respected Member
    Website's:
    FreshWap.com KWWHunction.com
    thanks alot mind freak. i started learning this all. i don't know if its useful or not but i really want to. gonna take some courses

    thanks alot mate +1 to all objectives
    Dear Haters,
    "I respect you so much, that's why I salute you with 1 middle finger!"

    Thank You !

  8.     
    #7
    Member
    Awesome idea
    Rep'd
    This is the staff, you have been banned

  9.     
    #8
    Banned
    Website's:
    forumophilia.com sceneaccess.org iptorrents.com
    Check PM PLZ.

  10.     
    #9
    The King of Kings
    Website's:
    rukidding.org thetechnews.org

    Smile Objective : 4



    Objective

    Write a program to accept two numbers and display sum of it.

    Commands to be used

    1. Arithmetic Operators

    Output



    Coding to be used

    Code: 
    <html>
    <head>
    <script>
    var a = prompt("Enter Your First Number");
    var b = prompt("Enter Your Second Number");
    
    document.write("<font size='5' face='Arial'>");
    document.write("No.1=" + a +"<br>");
    document.write("No.2=" + b +"<br>");
    document.write("No.1 + No.2=" +(eval(a) + eval(b)) + "<br>");
    document.write("</font>");
    </script>
    </head>
    <body>
    </body>
    </html>
    What We Have Done :

    Above We Used Basic Arithmetic Operators to add to variables
    (eval(variable) is used to convert the number to a form for the computer to understand so that it add's your given number correctly

    In the same above way you can do

    Addition
    Subtractions
    Multiplication
    Division.




  11.     
    #10
    The King of Kings
    Website's:
    rukidding.org thetechnews.org

    Smile Objective : 5



    Objective

    Write a program to increment the value of a & b using pre increment and post increment operators

    Commands to be used

    1. pre & post increment operators

    Output



    Coding to be used

    Code: 
    <html>
    <head>
    <script type="javascript">
    
    var a=10;
    var b=10;
    
    document.write("font size='5'>");
    document.write("Post Increment<br><hr>");
    document.write("a:" + a);
    document.write("<br>");
    document.write("a++:" + a++);
    document.write("<br>");
    document.write("a++:" + a++);
    document.write("<br>");
    document.write("a++:" + a++);
    document.write("<br>");
    document.write("a++:" + a++);
    document.write("<br>");
    document.write("<br><br>Pre Increment<br><hr>");
    
    document.write("b:" + b);
    document.write("<br>");
    document.write("++b:" + ++b);
    document.write("<br>");
    document.write("++b:" + ++b);
    document.write("<br>");
    document.write("++b:" + ++b);
    document.write("<br>");
    document.write("++b:" + ++b);
    document.write("<br>");
    document.write("++b:" + ++b);
    document.write("</font>");
    </script>
    <title>Expression Operators</title>
    </head>
    <body>
    </body>
    </html>
    
    </script>
    </head>
    <body>
    </body>
    </html>


Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PSD Tutorials
    By Shahrukh in forum Useful Sites
    Replies: 2
    Last Post: 26th Apr 2012, 08:53 PM
  2. Need Tutorials
    By sahil00150 in forum Technical Help Desk Support
    Replies: 7
    Last Post: 19th Feb 2012, 03:22 AM
  3. SEO Tutorials - Tutorials for new webmasters
    By Profit in forum Tutorials and Guides
    Replies: 16
    Last Post: 9th Dec 2011, 06:52 AM
  4. DLE Tutorials
    By pakman in forum Webmaster Discussion
    Replies: 6
    Last Post: 17th May 2011, 08:02 AM
  5. SEO Tutorials
    By mrrinmoy in forum Useful Sites
    Replies: 0
    Last Post: 14th Dec 2010, 10:20 AM

Tags for this Thread

BE SOCIAL