New life from now

20 January, 2010

Generate a random number from website

<script type="text/javascript">
function randomnumber()
{
var generator = Math.floor(Math.random()*100);
document.test.result.value = generator + ' wpm';
}
</script>

<form name="test">
<input type=button value=Finish onclick="randomnumber()">
Test Result : <input name=result readonly type=text size=6>
</form>
Posted by Lawrence at 09:31
Labels: Internship Programme

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2011 (1)
    • ►  March (1)
  • ▼  2010 (31)
    • ►  November (1)
    • ►  August (1)
    • ►  July (1)
    • ►  April (2)
    • ►  March (3)
    • ►  February (4)
    • ▼  January (19)
      • The Art of Possibilities by Ben Zander
      • Redesign the whole system
      • Eclipse+PyDev+GAE memcache error
      • JavaScript passing value to HTML in same page
      • Using the Templates from Python
      • Generate a random number from website
      • Check email in html form
      • Extending Base Templates
      • What is ' if __name__ == "__main__": ' for?
      • Use google app engine webapp application
      • Google app engine-Python in Eclipse with PyDev
      • Get user IP address and put in the Datastore
      • HTTP tool- Firebug
      • Adding Navigation Hints for Users---CSS
      • Web page design by CSS ---- tool
      • Some terminology
      • What is Memcahe Entries?
      • Questions in view.py
      • About 3 years have passed!
  • ►  2007 (1)
    • ►  February (1)

About Me

Lawrence
View my complete profile

My Douban

Powered by Blogger.