Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up Help"! With HTML JavaScript

    Hi, I need a javascript code that helps me to find my BMI (Body Mass Index) the formula to find it is:

    BMI =
    ( kg/mイ ) weight in kilograms
    覧覧覧覧覧覧
    height in metersイ

    I want to have 2 prompts: one for asking the weight (KG) other one asking the height in meters and then alert me what is mi BMI

    thankss

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,036
    Thanks
    23
    Thanked 589 Times in 588 Posts
    Things are not given away for free. We do help you with problems in your code. So either post the code you have tried or contract someone to write code for you.

    Please post your code.

    P.S. This is the wrong section to post in it's for JSON or DOM scripting as the title says. Not for javascript.

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,591
    Thanks
    0
    Thanked 644 Times in 634 Posts
    1. prompt is a debugging tool and should never be used on a live web page.

    2. you are lucky that this just happens to be a script that I am giving away free - see http://javascript.about.com/library/blbmi1.htm
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Tags for this Thread

    Posting Permissions

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