Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 05-25-2005, 08:00   #1 (permalink)
Julian
Civilians

 
Default Make my site the home page

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#homepag e)';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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 05-25-2005, 08:00   #2 (permalink)
Charles Sweeney
Civilians

 
Default Re: Make my site the home page

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#homepag e)';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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2005, 12:00   #3 (permalink)
SpaceGirl
Civilians

 
Default Re: Make my site the home page

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#homepag e)';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.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2005, 12:00   #4 (permalink)
Gandalf Parker
Civilians

 
Default Re: Make my site the home page

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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2005, 16:00   #5 (permalink)
Doc
Civilians

 
Default Re: Make my site the home page

I use
<SCRIPT LANGUAGE="JavaScript">
function addbookmark()
{
bookmarkurl=http://www.yoursite.com
bookmarktitle="Title of Bookmark"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarkti tle)
}
</script>

and then put a link up

<a href="javascript: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#homepag e)';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



 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2005, 08:00   #6 (permalink)
Julian
Civilians

 
Default Re: Make my site the home page

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,bookmarkti tle)
> }
> </script>
>
> and then put a link up
>
> <a href="javascript: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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2005, 08:00   #7 (permalink)
Charles Sweeney
Civilians

 
Default Re: Make my site the home page

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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Marine Front Page Site cato2 Marine Corps 2 07-12-2005 14:20
Want Page Banner Pictures to show web site name.. not the page title name Web Design 0 01-10-2005 23:00
one page on my web site does not have horizontal scroll bar.. Why Web Design 2 01-10-2005 09:00
How do I make postcards, four to a page? =?Utf-8?B?SmVubmlmZXI=?= Microsoft Applications 1 11-11-2004 22:55


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 12:36.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 1.56969 seconds with 19 queries