Sales Tax Calculator | JavaScriptSource

Sales Tax Calculator

Gordon Hudson Dec 18, 2001
This script adds a fixed percentage to an order total in a form. The percentage added is dependent on the option chosen from a menu. It was written to add sales tax (VAT) to an online ordering system but could be used to add shipping or any other fixed percentage amount. IE, NS6+
Total excluding VAT
VAT status
Total including VAT

The JavaScript Source: Forms: Sales Tax Calculator

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response


Hello! I am from India. Here the VAT rate is 12.36% of the total bill. What should I do in the HTML source code to modify it... Thanks in advance

Sankalp Aug 11, 2014

This really helped with a (1st) web development class problem. Many thanks.

deb Aug 6, 2014