Returning to calling page
Menu Return to calling page
 

Return to previous page

I'm sure that I have done this many times on pages but I have not documented it.

I wanted this on a page that I had withdrawn but I was wondering whether the visitor could work out the menu system.

Do I need to return void?

As I took some of this code from another of my pages I am asking myself the question whether I actually need to return void.

The button above returns a void (I think) and it works. It also works if I don't return a void.

Top

Top of page/Back   

There may be instances where I want to add a control on a page that take the visitor back to when they clicked from.

An instance would be when a hyperlink takes the user to a place on the page that has no reference to the main title of the page.

For an example see my St. Mary's page and navigate to the Chancel

I may be abe to put this code into a common file. This also would apply to the "shim" code. Try the code out first to see if it is worth it.

   This looks confusing
   Possibly better
   or even this

I could also make the display of the control dependent on the device (i.e. responsive)

Examples of use

This is an experimental exercise the addition of symbols to pages is likely to confuse more than help. I started a page on Georgian Belchamp Walter and added a couple of these "widgets" to the timeline page. While this works for me I do think that it makes the page a little scrappy.

The "History" Stack

Observing the operation of the history.back() method and the "History" list generated by Microsoft Edge, the last page in History does not reflect what I expect.

This could be due to the fact that I normally have multiple browser tabs open at any given time. The "last page" in History could come from any of these instances.

The inconsistancy that I was seeing could also be due to the position in the page returned to may not be at the top of the page. The page may have been scrolled and the "return" will be to the location on the page before the scroll occured.

Links

Top

References: - a note on these

  • Window history.back() - https:// www.w3schools.com/jsref/met_his_back.asp

Site design by Tempusfugit Web Design -