| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > Script needed: Set this site as your home page |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Web Hosting Provider
Join Date: Jan 2008
Posts: 30
|
Hey, I have been trying to set up a button (image) which allows the user to set a website as their browser homepage. I have tries to figure it out, even googled, but failed miserably. As far as I can see this is possible only in IE. So there has to be a browser detection script attached. So, if the user is using IE, then he is shown the button along with manual instructions to set it as their home page. If he (excuse me for my gender bias) is using some other browser, then manual instructions for the same are shown. Can someone give me an example on how to do this? Just the script will be enough. Thanks.... |
|
|
|
|
|
#2 (permalink) |
|
Everything is fine.
|
Browser detection is becoming an outdated (and unreliable) practice more and more these days. Instead, you should be looking at Object Detection for the functionality that you require. Basically, if your visitors' User Agent supports the bookmarking object (addFavorite) then show the button, otherwise display a 'manual' message instead. The bookmarking object is currently supported in IE, Mozilla/Firefox, and Opera. If you Google for "addFavorite" then you should get enough results and guidance to be able to write the script... - Mike Edit: This page might be especially useful - http://labnol.blogspot.com/2006/01/a...k-firefox.html |
|
|
|
#5 (permalink) |
|
On the Naughty Step
Join Date: Jun 2007
Location: Glasgow
Posts: 1,300
|
A quick google leads me to this script, which only seems to work in IE: Code:
|
|
![]() |