Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to implement 'Goto Home' button

 
Rizwan Mohammad
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.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a button on my toolbar that works perfect for this.
 
Eric Pascarello
author
Rancher
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
Rancher
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic