Jump to content

raghunathmitte

Members
  • Posts

    2
  • Joined

  • Last visited

raghunathmitte's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I have a form in which an input text box is given for giving input. and a button is provided in it, when i click the button a javascript code is executed and results are displayed, now can any one help me out how to execute the javascript code when enter key is pressed(i.e. the button should be clicked when enter is pressed)
  2. try{String quantity=parseInt("abc123");if(quantity == NaN)throw "quantity cannot be null";}catch(exception){ alert(exception);}i have the above code in a function when i try to convert the string into int parseInt() method returns NaN value but if condition is not executing, is there any other way to compare with NaN?? please help me out
×
×
  • Create New...