Hi Ranjan, This list is for development of the cordova framework itself, and not really for user support.
First steps, are maybe to try using an alert to make sure the button handler code is called, and also try a console.log in some code that you know is called and make sure it shows up. Then you at least should have a direction to look. After that, I suggest you search and/or post on stack-overflow. Cheers, Jesse @purplecabbage risingj.com On Thu, Apr 19, 2018 at 9:42 AM, ranjan sasmal <sasmalranja...@gmail.com> wrote: > Hi Sir, > > please help me my issues . I can't understand why searchbutton is not > working on cordova app during search key pressed in android. > > Below my code.............. > > <html> > <head> > <title>Search Button Example</title> > > <script type="text/javascript" charset="utf-8" > src="cordova.js"></script> > <script type="text/javascript" charset="utf-8"> > > // Wait for device API libraries to load > // > function onLoad() { > document.addEventListener("deviceready", onDeviceReady, false); > } > > // device APIs are available > // > function onDeviceReady() { > // Register the event listener > document.addEventListener("searchbutton", onSearchKeyDown, false); > } > > // Handle the search button > // > function onSearchKeyDown() { > console.log('ok'); > } > > </script> > </head> > <body onload="onLoad()"> > <input type="search" /> > </body> > </html> > > It should console ok msg . but it is not working why? > > Thanks > Ranjan Sasmal. >