I store some parameters client-side in HTML and then need to compare them as integers. Unfortunately I have come across a serious bug that I cannot explain. The bug seems to
You can use Number() function also since it converts the object argument to a number that represents the object's value.
Number()
Eg: javascript:alert( Number("2") > Number("10"))
javascript:alert( Number("2") > Number("10"))