The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Yes, just add a onsubmit event handler to the form and check if that fields value is less than the entered one. You can do this by comparing defaultValue (asuming the page loaded with a value) with the inputs value property. Don't forget to use parseInt to compare the values.

EDIT: Come to think of it, I'm not sure this will work anyway. The submit button has already been pressed so passing an alert won't do any good - it's too late by then.

A returnConfirm would be better so the user can cancel the form post if they don't like the alert message. However, it would still be ideal if an alert would trigger if the user enters a smaller int BEFORE the submit button is pressed.