wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes How to implement 'Goto Home' button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to implement Watch "How to implement New topic
Author

How to implement 'Goto Home' button

Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
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.


Rizwan
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I have a button on my toolbar that works perfect for this.


GenRocket - Experts at Building Test Data
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Sep 02, 2005
Posts: 445
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Sep 02, 2005
Posts: 445
Sure Eric. Thanks for your inputs. I will implement the same ie. displaying Log off page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to implement 'Goto Home' button
 
Similar Threads
session.invalidate()
When will I get stuff from Sun?
java.lang.ClassCastException
on Contrl + Home how to set focuson to first field on the form?
How to set up JSDK2.1 server