creating a back button...how?

I don't see how to create a back link that would follow the breadcrumb trail to return the user to the previous page they were on before the current one.

I use the work back, to differentiate from iWeb's use of the word previous, which to iWeb means the previous page in the list of pages in the left hand column.

For example, if About Us is accessible from any page, how do you get the user back the page they were on before About Us?

This is pretty fundamental to web design, so there must be a way to do it.

Thanks
bob

MacBook Pro, Mac OS X (10.5.6), Unibody MacBook Pro 2.53GHz,4GB Ram, OS X, iPhone 3G, Parallels 4

Posted on Jul 1, 2009 8:02 AM

Reply
11 replies

Jul 1, 2009 1:23 PM in response to BobInIndy1

Bob,

I would think the easiest way to do this is to create an object or piece of text where your back button is desired and turn it into a hyperlink (to your desired page) in the info browser.
With this method you will have to make a different back button for each page, or simply copy one that you have made and change its hyperlink destination on each page.
You can see an example of this method on my website http://www.studi02design.com
I hope this helps,

-V

Jul 1, 2009 3:24 PM in response to Vexd

Either create a shape for the button or use text and link the item to the previous page via the Inspector/Link/Link pane. There's an option "One of my pages" where you select the page in the site you want to link to.

User uploaded file

Click to view full size


I would use a text based link as a shape based link will just add more "weight" to the page to be loaded.


User uploaded file

Jul 1, 2009 9:23 PM in response to BobInIndy1

this is unreal... for the simplest of thing.
OK, let's cut to the chase, add this one line to your pages using HTML Snippet:

<button type='button' target='_parent' onclick='javascript:history.back();' > Back Button </button>

resize the HTML Snippet box so the button shows up properly, that's it; it'll dynamically link to the previous page... it's all about javascript.
You can copy+paste the HTML Snippet to other page where you like to have a 'back button'.

Jul 2, 2009 6:55 AM in response to Old Toad

iWeb's previous page (and next page) refer to the order of pages in the left column in iWeb, previous DOES NOT REFER to the previous page before the current page in navigation (which is not the same as the list of pages in the left column).

The issue is you don't know in advance what page to take them back to (if About Us can be accessed from any page), so creating a link won't work either.

Any other ideas?
Thanks
bob

Jul 2, 2009 8:36 AM in response to BobInIndy1

Bob,

without getting into an argument
blue and grey are most definitely different colors
the list at the bottom of the page are NOT links (site is still under construction)
the navigation bar runs up the side of the main graphic.

Now back to your issue, the example you described in your response is completely invalid "The issue is you don't know in advance what page to take them back to (if About Us can be accessed from any page), so creating a link won't work."
If you have access to every page in your site FROM every page in your site then yes you are correct.
Usually pages like "about us" or "contact us" are listings in the main navigation bar which is present and in the same location on every page, which completely nullifies the need for a back button...........

I'm not sure anyone, including myself fully understands what you are trying to achieve here (and not for a lack of trying)
It sounds like the HTML code that a previous viewer posted for you is going to be your best bet

Sorry I couldn't help more
-V

Jul 2, 2009 6:14 PM in response to BobInIndy1

this is unreal... for the simplest of thing.


my last remark was not aiming at any one, it was aiming at this forum in general.
it's unreal, cuz people got you 'round-n-round in circle' when they don't understand your question and what you want to do.

I think it is absurd to expect iWeb users to be Javascript programers.


as for javascript: iweb is loaded with javascript, in every iweb page there is iWebSite.js file, this file included Prototype.js javascript framework -it's a big framework, takes lotsa time of lotsa people to do, even apple uses it in its site-.

so any iweb javascript knowledge is that much legs-up for you.

Jul 6, 2009 6:25 AM in response to Vexd

Vexd - I was simply trying to give you some feedback on the web. True, grey and blue are different colors. All I was saying was on my brand new top of the line MPB they are indistinguishable and unreadable. You may do what you want with that information.

The JS script for the back button works fine, I just don't understand why iWeb doesn't give you a back button. Every browser has one, so it is not like it is a strange issue.

I really don't understand the confusion on my question. If you have page1, page2, and page 3 all with an about us link, when they click the about us link and are looking at the About Us page, you cannot hard code a link back (is it back to page1, page2 or page3?). You need a true back button, like a browser, or the JS programing suggestion, to return the user to the previous page based on there navigation.

Now, I always realize I could be missing something simple, so please advise if I am.

Thanks
bob

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

creating a back button...how?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.