SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face Javascript maths

    Would javascript be a good tool to do some simple maths on a page?

    I want a visitor to enter a number eg 28, then use java to display what the number is -11.

    Very simple, I could do it with php but would like to keep it all on one page without the need of a submit button.

    eg visitor enters 28, and is given the answer 17.

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Asked too soon, found just what I'm looking for here

    http://homepage.ntlworld.com/kayseyc...ariables4.html


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •