integer comparison in text boxes

My javascript function does a comparison of values in two text boxes from my page written in HTML. How can I compare these values as numbers? Is there a function that will convert the input text into a number?
wariarAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
TTomConnect With a Mentor Commented:
parseInt(document.form.textbox.value)

for integers

parseFloat() for floating point.

Tom
0
All Courses

From novice to tech pro — start learning today.