Source language: Translate to:

How to create an action for the phone menu button ?

General questions about NeoAppBuilder - our rapid application development tool for building HTML5, web and mobile apps.

Moderator: Neosoft Support

How to create an action for the phone menu button ?

Postby David de Argentina » Thu Sep 24, 2015 12:07 pm

hi all

Does any know how to create an action for the phone menu button ?

Thanks in advance,

David de Argentina
User avatar
David de Argentina
 
Posts: 1553
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Re: How to create an action for the phone menu button ?

Postby Neosoft Support » Thu Sep 24, 2015 4:47 pm

None of my Android devices have a menu button :( , but you can try adding something like this to your start up action:

BeginJS
document.addEventListener("menubutton", menuButtonClick, true);
EndJS

Then add a function called menuButtonClick somewhere. For example:

function menuButtonClick() {
alert('Menu button pressed.');
}
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5593
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to General NeoAppBuilder Discussion

Who is online

Users browsing this forum: No registered users and 1 guest