Page 1 of 1

Hide standard Backbutton in Header

Posted: Thu Nov 28, 2013 7:54 pm
by Alexander vdhooft

How can I hide the 'standard' backbutton in the header with javascript?

I would like to hide the button in the case of an android device (they have already a backbutton). I can detect if the user has an andoid device, but I can not find how to hide the backbutton in that case.


Hide standard Backbutton in Header

Posted: Thu Nov 28, 2013 8:14 pm
by Maryna Brodina

Hello! Try this way pre$("[data-role=header]", $.mobile.activePage).find("a[data-rel=back]").hide();/pre


Hide standard Backbutton in Header

Posted: Thu Nov 28, 2013 8:28 pm
by Alexander vdhooft

That seems to work!
Thanks..