Home
• Programming • JavaScript
May 2nd, 2013 at 10:37 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <script> function myFunction() { var total=0; var i=1; while(i<10) { total=total+i; i=i+1; } } document.getElementById("asha").innerHTML=total; </script> <input type="button" value="Click" onclick="myFunction" /> <p id="asha">Show here</p> </body> </html>
First
Prev
Next
Last
/6
Tweet
Comments 5
whats the problem?
<input type="button" value="Click" onclick="myFunction()" />
see the next post
OK I AM UNDERSTAND...........
আপনি কি জাবা script জানেন। খুব ভালো।
Comment
Share
About Author
Zinia Islam
General Subjects
Drawing
1+
University
Campus
13+
Online Tips
Religious
16+
Fashion & Design
37+
Health
50+
Computer
7+
Music
1+
Mobile
1+
Recipe
9+
Photography
3+
Agriculture
1+
Intorior Design
12+
Study
1+
Story, Tales & Poem
Comics
1+
Fiction
3+
Jokes
37+
Jobs
IT & Telecommunication
7+
Programming
JavaScript
6+
SQL
1+
HTML5
1+
C
1+
Java
1+
PHP
1+
News
Career News
3+
Software Application
Adobe Photoshop
4+
Microsoft PowerPoint
1+
Microsoft Excel
4+
General Knowledge
History
2+
Geography
1+
Others
1+
Bangladesh
1+
Database
Microsoft Access
1+
Schools
Whiteboard
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd
Comments 5