rickyboy1982 Posted March 22, 2010 Share Posted March 22, 2010 ok I did this ages ago but cant for the life of me remember how Im sure its javascript I used to do it.All im after is a simple link that when clicked lets the user add the page to their favorites.I searched your tutorials but couldnt find the answer.Thanks in advance for any help. Link to comment Share on other sites More sharing options...
jeffman Posted March 22, 2010 Share Posted March 22, 2010 Microsoft may have something for this, but this is certainly not part of any web standard, because it creates a potential for abuse. Link to comment Share on other sites More sharing options...
rickyboy1982 Posted March 22, 2010 Author Share Posted March 22, 2010 Ok maybe it was the add as homepage?lol it was a while agoif it was how do you let users click a link to add the page as their homepage? Link to comment Share on other sites More sharing options...
jeffman Posted March 22, 2010 Share Posted March 22, 2010 Same answer. Here's the thing. If you can do something as a response to a user's click, then you can also do it without the user's permission. That's fine as long as the behavior is limited to your document and your server. But changing a user's browser settings of any kind goes beyond your rights as a page author. No one much minded this kind of stuff 15 years ago, but time has changed that. Link to comment Share on other sites More sharing options...
rickyboy1982 Posted March 22, 2010 Author Share Posted March 22, 2010 I see this sort of thing all the time, almost every web page I go on has a add as homepage link.google has bang in the middle of their front page. Link to comment Share on other sites More sharing options...
jeffman Posted March 22, 2010 Share Posted March 22, 2010 I think you'll find it only works on IE, and I have no idea if it works in IE8 or will work in IE9. Google turns up this very old page, for example:http://javascript.internet.com/page-detail...epage-link.html Link to comment Share on other sites More sharing options...
ShadowMage Posted March 22, 2010 Share Posted March 22, 2010 But changing a user's browser settings of any kind goes beyond your rights as a page author. No one much minded this kind of stuff 15 years ago, but time has changed that.No people changed that. It's all those greedy/malicious no-gooders (hackers) out there that mess stuff up all the time. Link to comment Share on other sites More sharing options...
justsomeguy Posted March 22, 2010 Share Posted March 22, 2010 Advertisers have harmed the internet more than any hacker. They're right up there with lawyers. The first spammer, as a point of fact, was also a lawyer (the first spam was an advertisement for a law firm). Link to comment Share on other sites More sharing options...
ShadowMage Posted March 22, 2010 Share Posted March 22, 2010 Ah, how could I forget spammers and advertisers.... But regardless, that still makes my point valid that people are the ones who ruined the internet. Not to mention the lawsuit happy jerks out there who will sue just because they spill hot coffee on their lap while driving... Link to comment Share on other sites More sharing options...
justsomeguy Posted March 22, 2010 Share Posted March 22, 2010 It turns out that DEC was responsible for the first spam on ARPANET in 1978, the situation I was thinking about with the lawyers was the first commercial spam, over Usenet in 1994. Link to comment Share on other sites More sharing options...
rickyboy1982 Posted March 23, 2010 Author Share Posted March 23, 2010 well what a topic this has turned into lol...ok back on topic the link on google frontpage works great and i now have google as my homepage. Link to comment Share on other sites More sharing options...
justsomeguy Posted March 23, 2010 Share Posted March 23, 2010 First, the link on Google's homepage doesn't work in all browsers. When I click that link in Opera, for example, it sends me to a page (in Chinese, no less), instructing how to set Opera's home page.Second, if you see a place where it's doing what you want, then check the code and see what it does. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.