Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Ohope5
Posts: 12
Registered: ‎12-18-2012
My Device: Developer
Accepted Solution

Need Help Using the Back Button

Is there any way to make the BB built in back button go to the index.html screen and not just the last one. I seem to remember seeing this somewhere, but I have searched and searched, and can't find it anywhere.
Thanks.
Contributor
g0ehu
Posts: 32
Registered: ‎05-20-2011
My Device: 9860 and 32GB Playbook

Re: Need Help Using the Back Button

blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,
	function() {
   window.parent.location.href='index.html';
   return false;
}); 

 and in config.xml:

 

<feature id="blackberry.system.event" required="true" version="1.0.0.0" />