![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | Blogs | Mark Forums Read |
| Web Design Forums and discussions on webdesign |
Web Design | |||||||||
|
|
|
|
| |||||
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Civilians | 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 |
|
| | #2 (permalink) |
| Civilians | 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 |
|
| | #3 (permalink) |
| Civilians | 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. |
|
| | #4 (permalink) |
| Civilians | 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 |
|
| | #5 (permalink) |
| Civilians | 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 |
|
| | #6 (permalink) |
| Civilians | 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 |
|
| | #7 (permalink) |
| Civilians | 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 |
|
![]() |
| Bookmarks |
| Thread Tools | |
| |
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 |
![]() | ![]() | ![]() |