Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to implement 'Goto Home' button

 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application, I want to have a button like 'Goto Home', on click of that, I wanted to take to browsers default home page, whatever it was set either about:blank or yahoo.com or whatever it is.
Your help is appreciated.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a button on my toolbar that works perfect for this.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing you can do since the browser does not give up this information. As Gregg pointed out, there is the home button already in the browser.

Eric
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I understand about that toolbar home icon. But I wanted to have few system buttons in one place. For e.g when user logged out of the application I want him to display few options like completely signoff from all applications or goto home page or close window..
I thought when there is script available to make some page as home page, there should be one available for taking you to home page also...
Anyway, if not availble, then no option of thinking about that.
Thanks for your time on replies.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just take them to a friendly "Logged Off page" with nothing else.

A browser window can not be closed via JavaScript if it opened it up.
You do not have control of knowing favorites and such.

Your users can take it from the log out page...(That is even if they log out!)

Eric
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure Eric. Thanks for your inputs. I will implement the same ie. displaying Log off page.
 
I don't like that guy. The tiny ad agrees with me.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic