Numeric

What is the best way to get a numeric value out of an input box
A:
Use parseInt()

Code:
var mynum = parseInt(Lianja.evaluate("inputbox('Please enter number','Number','')")); 

or

Code:
var mynum = parseInt(prompt('Please enter number','','Number'));


Advertisements

2 thoughts on “Numeric

  1. Wow, wonderful weblog structure! How lengthy have you ever been running a blog for? you make running a blog look easy. The full look of your site is excellent, as smartly as the content material!

    Liked by 1 person

  2. You actually make it seem so easy together with your presentation however I in finding this matter to be actually something that I think I might never understand. It seems too complicated and very large for me. I am looking forward in your subsequent put up, I’ll try to get the hold of it!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s