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

New Member
Posts: 2
Registered: ‎07-11-2013
My Device: Blackberry Bold
My Carrier: vodafone

Back Button issue


I am developing a hybrid application using HTML5/javascript and SUP 2.2 as middleware.

In my application, window..history.back does not work for the back button(on BlackBerry 6.0, it's working fine on BlackBerry 7.0 and all other platforms)

I have added window.history.back on clcik of back button(not the physical/hardware back button)

I also tried window.history.go(-1), navigator.app.backHistory: both unsuccessful

Please provie some solution for this.

Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Back Button issue

7 should manage this solution


Stuck history in localStorage then you can navigate to any previous


I'd make it a FIFO (delete the last one when you hit X)

Click the like button if you find my posts useful!
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Back Button issue

Note, "back" is a function, not a property. The correct syntax is 








I wrote this test page a while ago that provides test cases for the window.history object:




Can you confirm that using these tests that you cannot navigate back/forward on your BB6 device?

Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Member
Posts: 2
Registered: ‎07-11-2013
My Device: Blackberry Bold
My Carrier: vodafone

Re: Back Button issue



Thanks for the prompt reply.


I did use window.history.back() only. Made a mistake while typing question. But still not working.

Also, wen through your link. I can confirm that using these tests, Im not able to navigate forward/backward on pages.


Please note that Im not working on simple browser in mobile, instead HTML5 pages are been rendered inside SUP2.2 HWC container.