O'Reilly logo

iPhone JavaScript Cookbook by Arturo Fernandez Montoro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a back button

At this point we have the basic elements for our application. We have learned how to create a toolbar and a footer, and how to modify the main status bar of the device. Probably you're thinking our toolbar is too simple. Yes, you're right. It could be more useful if we add some buttons. One of the most important buttons for this bar is the back button. This is a small and blue button allowing the user to come back to the previous page of our application. It's very intuitive for the user and is similar to an arrow pointing to the left. Formally, the back button is a navigation widget for the user interface.

Getting ready

We're continuing using the iWebKit framework installed on our local machine.

How to do it...

Open your previously ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required