You are here: Re: Back button « HTML « IT news, forums, messages
Re: Back button

Posted by Dan on 07/29/05 04:40

Ted wrote:
> > You can't do this with HTML alone. You might use
> > <a href="../pagename.htm" onclick="window.back()">Back</a>
>
> Thanks for that. I didn't really want users to have to enable jscript...
> Works fine but goes to top of page, as you said.
>
> <a href = "javascript:history.back()"> Go back </a>
> Works just like 'Back' button. Nice.
>
> So, those without jscript enabled can use the back button
> while the more adventurous will see my 'go back'.

That's not really an improvement... the other person's example
gracefully degraded to an ordinary link if JavaScript was not enabled,
while your version will merely produce an error in that case. And
those without JavaScript will see it... it just won't work.

--
Dan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация