Same function as alert
there is another function
"prompt"
prompt is useful to take some value from user
like javascript:prompt("Enter your name");void(0)
here we have written another function void(0) because
when we use javascript browser creates a new page
by writing void(0) we say to browser that we have to do nothing.just run the script and stay at same page
Taken value vis prompt we can store it and use it in future
e.g.
javascript:var a=prompt("Enter your name");alert("Hello "+a+" How are you?");void(0)
in above example we are taking user's name in variable a via prompt and then using it in second alert function
; is used to separate two javascripts
try yourself make your own javascripts using alert,+,variables,prompt
Read all javascript tutorials Click here
This entry was posted
on Wednesday, June 18, 2008
and is filed under
javascript,
tutorial
.
You can leave a response
and follow any responses to this entry through the
Subscribe to:
Post Comments (Atom)
.
Archives
-
▼
2008
(18)
-
▼
June
(18)
- Orkut Profile Maker Without TIMERs
- Source code Status message changer for orkut
- orkut profile maker tutorial
- c# video tutorials
- Create Captcha in Vb .Net
- Orkut Basic terms gid uid tid pid aid etc
- Learn VB .NET easy way Part -1 Tutorial
- C Programming Tutorial (Algorithms)
- C Programming Tutorial Part-1
- Virtual Software Development Guideline
- Javascript Tutorial Part-3
- Javascript Tutorial Part-2
- Javascript Tutorial Part-1
- Orkut Mass Community Joiner
- Simple HTML Editor in VB .NET
- Reading From Text file VB .NET (Text file to Listb...
- Make softwares without timer in VB .NET
- Intro of the blog
-
▼
June
(18)

0 comments