Results 1 to 10 of 23
-
7th Jul 2011, 08:55 PM #1OPThe King of KingsWebsite's:
rukidding.org thetechnews.orgBasic 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
-
7th Jul 2011, 09:05 PM #2MemberWebsite's:
allgames2k.com games2k.me Moviesondownload.comLooking Forward to iT!
Adspots on Allgames2k.Com - 6000 U/V. PM ME!
-
7th Jul 2011, 09:07 PM #3OPThe King of KingsWebsite's:
rukidding.org thetechnews.orgObjective : 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>
Code:<html> <head> <title></title> <script language="javascript"> </script> </head> <body> </body> </html>
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 ";"
-
7th Jul 2011, 09:20 PM #4OPThe King of KingsWebsite's:
rukidding.org thetechnews.orgObjective : 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>
- 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.
-
7th Jul 2011, 10:20 PM #5OPThe King of KingsWebsite's:
rukidding.org thetechnews.orgObjective : 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>
-
7th Jul 2011, 10:23 PM #6Respected MemberWebsite's:
FreshWap.com KWWHunction.comthanks 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 objectivesDear Haters,
"I respect you so much, that's why I salute you with 1 middle finger!"
Thank You !
-
7th Jul 2011, 10:25 PM #7Member
Awesome idea
Rep'dThis is the staff, you have been banned
-
7th Jul 2011, 10:40 PM #8BannedWebsite's:
forumophilia.com sceneaccess.org iptorrents.comCheck PM PLZ.
-
8th Jul 2011, 07:46 PM #9OPThe King of KingsWebsite's:
rukidding.org thetechnews.orgObjective : 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>
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.
-
8th Jul 2011, 08:01 PM #10OPThe King of KingsWebsite's:
rukidding.org thetechnews.orgObjective : 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>
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
PSD Tutorials
By Shahrukh in forum Useful SitesReplies: 2Last Post: 26th Apr 2012, 08:53 PM -
Need Tutorials
By sahil00150 in forum Technical Help Desk SupportReplies: 7Last Post: 19th Feb 2012, 03:22 AM -
SEO Tutorials - Tutorials for new webmasters
By Profit in forum Tutorials and GuidesReplies: 16Last Post: 9th Dec 2011, 06:52 AM -
DLE Tutorials
By pakman in forum Webmaster DiscussionReplies: 6Last Post: 17th May 2011, 08:02 AM -
SEO Tutorials
By mrrinmoy in forum Useful SitesReplies: 0Last Post: 14th Dec 2010, 10:20 AM
themaCreator - create posts from...
Version 3.18 released. Open older version (or...