| Author |
Make my site the home page
|
|
| Julian 2005-05-25, 8:14 am |
| I have tried a couple of scripts to add a link a user can click to make
my site their browser's home page. For example:
<a href="#"
onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.mysite.co.uk');">Make
my site your home page</a>
They don't work, in IE or Firefox, even the demo links on the sites
containing the scripts.
Am I correct in thinking that today's security conscious browsers won't
let the home page be set from a script any more (in which case why do
sites still advertise these scripts), or is there a way to do this that
works?
--
Julian
| |
| Charles Sweeney 2005-05-25, 8:14 am |
| Julian wrote
> I have tried a couple of scripts to add a link a user can click to
> make my site their browser's home page. For example:
>
> <a href="#"
> onClick="this.style.behavior='url(#default#homepage)';this.setHomePage
(
> 'http://www.mysite.co.uk');">Make my site your home page</a>
>
> They don't work, in IE or Firefox, even the demo links on the sites
> containing the scripts.
>
> Am I correct in thinking that today's security conscious browsers
> won't let the home page be set from a script any more (in which case
> why do sites still advertise these scripts), or is there a way to do
> this that works?
Save yourself the trouble. The user can easily make your site their
homepage by themself.
Although one has to wonder if they would want a site for a homepage
where the webmaster presumes to know what's best for them.
--
Charles Sweeney
http://CharlesSweeney.com
| |
| SpaceGirl 2005-05-25, 8:14 am |
| Julian wrote:
> I have tried a couple of scripts to add a link a user can click to make
> my site their browser's home page. For example:
>
> <a href="#"
> onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.mysite.co.uk');">Make
> my site your home page</a>
>
> They don't work, in IE or Firefox, even the demo links on the sites
> containing the scripts.
>
> Am I correct in thinking that today's security conscious browsers won't
> let the home page be set from a script any more (in which case why do
> sites still advertise these scripts), or is there a way to do this that
> works?
It wont work. Windows XP SP2 blocks scripts from doing this in IE, and
it wont work at all in FireFox whatever you do.
| |
| William Tasso 2005-05-25, 8:14 am |
| Forging a path through the Usenet jungle, armed only with a rusty Mozilla
Thunderbird 1.0 (Windows/20041206), Julian stumbled into alt.www.webmaster
and said:
> ...
> Am I correct in thinking that today's security conscious browsers won't
> let the home page be set from a script any more
more or less. you may find the odd browser that hasn't been updated, but
frankly it's not worth the effort
> (in which case why do sites still advertise these scripts),
do you know many people that remove old stuff from their sites? the web
is littered with out of date information on all subjects
> or is there a way to do this that works?
Can be done in some closed corporate environments, but there are better
ways of forcing the users home page in that situation.
--
Whatever you do - do something.
| |
| Gandalf Parker 2005-05-25, 7:58 pm |
| Julian <julian@address.invalid> wrote in news:d71hap$jv9$1
@domitilla.aioe.org:
> I have tried a couple of scripts to add a link a user can click to make
> my site their browser's home page. For example:
It was another of those good ideas which got abused so now no one gets to
use it. In my opinion, most pages that deserve to be a home page never used
it anyway. They let the users do it.
Gandalf Parker
| |
|
| I use
<SCRIPT LANGUAGE="JavaScript">
function addbookmark()
{
bookmarkurl=http://www.yoursite.com
bookmarktitle="Title of Bookmark"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
</script>
and then put a link up
<a href="java script:addbookmark()" Title="Click Here to add this site to
your bookmarks">Bookmark Us Now</A>
"Julian" <julian@address.invalid> wrote in message
news:d71hap$jv9$1@domitilla.aioe.org...
> I have tried a couple of scripts to add a link a user can click to make
> my site their browser's home page. For example:
>
> <a href="#"
>
onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http
://www.mysite.co.uk');">Make
> my site your home page</a>
>
> They don't work, in IE or Firefox, even the demo links on the sites
> containing the scripts.
>
> Am I correct in thinking that today's security conscious browsers won't
> let the home page be set from a script any more (in which case why do
> sites still advertise these scripts), or is there a way to do this that
> works?
> --
> Julian
| |
| Julian 2005-05-26, 7:45 am |
| Doc wrote:
> I use
> <SCRIPT LANGUAGE="JavaScript">
> function addbookmark()
> {
> bookmarkurl=http://www.yoursite.com
> bookmarktitle="Title of Bookmark"
> if (document.all)
> window.external.AddFavorite(bookmarkurl,bookmarktitle)
> }
> </script>
>
> and then put a link up
>
> <a href="java script:addbookmark()" Title="Click Here to add this site to
> your bookmarks">Bookmark Us Now</A>
>
Thanks for the replies, and the bookmark script. I'll give that a try.
--
Julian
| |
| Charles Sweeney 2005-05-26, 7:45 am |
| Julian wrote
> Thanks for the replies, and the bookmark script. I'll give that a try.
Thanks for ignoring the replies.
--
Charles Sweeney
http://CharlesSweeney.com
| |
| William Tasso 2005-05-26, 11:22 pm |
| From the relative comfort of the No thank you boardroom,
<me@charlessweeney.com> patched in a new connection to
news:alt.www.webmaster and said:
> Julian wrote
>
>
> Thanks for ignoring the replies.
it'a curve - takes a while (especially for programers coming to the web)
to let go.
--
Whatever you do - do something.
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |