Find Factorial of a number in HTML using JavaScript

Posted Date:     Total Responses: 0    Posted By: Banshidhar Sahoo   Member Level: Gold   Points/Cash: 8   

Project Description:

This HTML project demonstrates to find the factorial of a number. It validates the input first. Then displays the factorial using JavaScript.

Technical Features:

1. Uses HTML controls like textbox, button, table
2. Calculates factorial of a number through JavaScript function
3. Demonstrates JavaScript if...else and while loop
4. Validation input for number entry only
5. Pops up Error message through Alert box


To run this application, JavaScript must be enabled in Internet browser.

Run the application:

Click the attachment Factorial.htm to see the application. To download the file, right click on the attachment Factorial.htm and select "save target as" and then double click it to run the application.

About Source Code:

Right click on the webpage and select View source.


Open the downloaded file with notepad to see the source code.

Report Bugs, Issues, help or Suggestion:

If you found any bug, please report to me immediately. If you are facing any problem or want to give any suggestion, you are always welcome. Please post your valuable comments if you found it useful.

My other projects:

For a comelete list of all my projects, visit my blog.

Banshidhar Sahoo
Mail id:


  • Factorial.htm (2339-11226-Factorial.htm)

  • Project Feedbacks

    No feedbacks found. Be the first to respond...

    Post Feedback
    You must Sign In to post a feedback.
    Next Project: To interface SD/MMC Memory to the ARM Kit.
    Previous Project: Pulse generator timer having independent ON-OFF time

    Return to Project Index

    Post New Project

    Related Projects

    Top Contributors
    TodayLast 7 Daysmore...

    Awards & Gifts
    ISC Technologies, Kochi - India. © All Rights Reserved.