Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I override the title of a bookmark for a web page?

Tags:

html

title

This question has been asked before by someone else entirely, but basically no solution was given (and this was in 2008). Now, in 2013, HTML and browser functionality has increased, so I thought maybe it's a good idea to ask.

Question: As a developer, how can you make sure that the title of the web page is different from the title of when someone bookmarks your page?

The reason I ask is because there are many websites that have their title, and then some slogan. Or worse, the slogan first and the actual site title after that. In any case, the titles are long, and you want your bookmarks to be concise, preferably one word, right? I want to know if there's any kind of functionality like that available in modern browsers.

like image 677
DaVince Avatar asked Nov 13 '22 13:11

DaVince


1 Answers

As far as I can tell for Internet Explorer you can add a link, perhaps in the footer, for your visitors to click and bookmark your site and edit the default title with this function AddFavorite().
Here is a link to it on MSDN. Please notice that this function is deprecated.

See the demonstration of use below:

 <a href="#" 
onclick="window.external.AddFavorite(location.href, 'YOUR_TITLE_HERE'); 
     return false">
Bookmark this!
</a>

Although this won't work on other browsers as far as I am aware (surely won't work on Chrome and Firefox) and it's use is abolished when a user decides to bookmark your site manually instead of clicking the link.

like image 73
Theocharis K. Avatar answered Dec 22 '22 14:12

Theocharis K.