Double letter displayed in Safari Browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Suganthar
    New Member
    • May 2012
    • 6

    Double letter displayed in Safari Browser

    My simple popup menu contain a textbox which can only allow numbers by running validateNumers javascript function.

    Here, if onKeypress is triggered, This javascript function is running twice and return the value inside the textbox twice in Safari Browser. It perfectly works in Other browsers. For an Example, If I typed 2, Then It leaves the vale 22 inside the textbox in Safari browser 5.1.7.

    I did not come across this problem in normal window. It is only occured in popup window
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Without code, it'd be guesswork. Post your code.

    Comment

    • ezpeleta
      New Member
      • May 2012
      • 1

      #3
      Fixed by adding [return false] within document.onkeyd own event.


      taken from : https://discussions.apple.com/thread...art=0&tstart=0

      Comment

      Working...