简体   繁体   中英

onkeyup event is not working in mobile phones

im developing web app that must work in all smart phones
my code is like :

<input type='text' style='width:50px' onkeyup="abc()"/>

and js is like:

function abc(){
    alert("something");
}

its working in my computer's browser but its not working in my android phone's browser.
What to do..?

You could try debugging your mobile browser with something like WEINRE or install Adobe Shadow (which uses WEINRE).

WEINRE is essentially a remote web inspector akin to Developer tools provided in Chrome or through Firefox Firebug.

That may help you see the errors and trace the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM