Parse the string into an integer using parseInt
:
javascript:alert(parseInt("2", 10)>parseInt("10", 10))
More Related Contents:
- browser freezes with this js code, why?
- How do I pass a URL as a parameter? [closed]
- What should I do to use this webpacked JS library? [closed]
- .index() only for one instance of class [closed]
- How to launch html using Chrome at “–allow-file-access-from-files” mode?
- How do I scroll to an element using JavaScript?
- Is it possible to run an .exe or .bat file on ‘onclick’ in HTML
- Does HTML5 allow drag-drop upload of folders or a folder tree?
- Changing the selected option of an HTML Select element
- Submit form and stay on same page?
- Bootstrap close responsive menu “on click”
- Positioning element at center of screen
- jQuery: Why use document.ready if external JS at bottom of page?
- getAttribute() versus Element object properties?
- How to render HTML string as real HTML?
- Is it possible to dynamically scale text size based on browser width?
- Blur Img’s & Div’s in HTML using CSS
- Submit and onclick not working together
- Google Maps API v3: InfoWindow not sizing correctly
- How to set mousemove update speed?
- Why does `childNodes` return a number larger than I expect?
- Can you target an elements parent element using event.target?
- Scroll Position of div with “overflow: auto”
- How to properly unload/destroy a VIDEO element
- How to hide optgroup/option elements?
- What does this mean: “document.write(‘
- When to access the attribute (vs the property)?
- How to save and edit a file using JavaScript?
- Replacement for deprecated `keypress` DOM event
- HTML5: Detecting if you’re on mobile or pc with javascript? [duplicate]