Add to favorites for all browsers. Adding folders and files to Favorites in Windows Add a page to favorites html




Today I will tell you about one useful function on the site - this is a link, or a button “Add to bookmarks (favorites)”. This feature allows users to bookmark a page they like on your site in their browser so they can quickly and easily access it when needed.

Many of you will say: “Why duplicate the browser function, because this button is in the address bar?”

Yes, there is, but it’s there, firstly, not very noticeable, and secondly, some users don’t know about it at all.

To improve the UI (user interface), it is better to duplicate this function and place the link/button “Add to bookmarks (favorites)” in a prominent place. For example, if you have an online store, then it is better to insert it on the product card; if you have a blog, then under or above the article. The location still needs to be tested. It can also be placed in the site header on all pages.

There are many different ways to implement this function on the Internet, but most of them do not work in all browsers, sometimes it doesn’t work in old ones, sometimes in new ones, sometimes in IE, sometimes somewhere else.

Therefore, I had to choose the best one among them and add a little to it. And today I will share this method with you and provide step-by-step instructions on how to install the “Add to Bookmarks (Favorites)” link/button on your website.

In order to make a “add to bookmarks” button for a site, we need to follow 3 simple steps:

Creating a JS File

If you have javascript on your site - a file that connects on all pages of the site, then use it and proceed to the next step. If you don't have such a file, you need to create it. To do this, we will create a folder called “js” in the root folder of the site, and there will already be a file in it and call it “functions.js”.

< !DOCTYPE html>Store Header > Page Content

Copying and saving code

Below is the JavaScript code that you need to paste into the file you selected/created and save it:

Function addFavorite(a) ( var title = document.title; var url = document.location; try ( // Internet Explorer window.external.AddFavorite(url, title); ) catch (e) ( try ( // Mozilla window. sidebar.addPanel(title, url, ""); catch (e) ( // Opera if (typeof(opera)=="object" || window.sidebar) ( a.rel="sidebar"; a.title =title; a.url=url; return true; else ( // Unknown alert("Press Ctrl-D to bookmark the page"); ) ) return false;

Adding a link/button to the site

Now all we have to do is select a place on the site and paste the following HTML code there:

Add this page to your favorites!

That's all! You can see (and try) how it all works just below, as well as in the sidebar of this site.

P.S. I would like to add: This method works in the following browsers:

  • Opera
  • Mozilla FireFox
  • Google Chrome / Safari - the message “Press Ctrl-D to bookmark this page” will be displayed; in these browsers this function is disabled for security reasons.

Users surfing the Internet regularly find interesting materials, pictures, videos or game sites that they would like to save so they can visit them later. Some people add links to a notepad the old-fashioned way, while others open their favorite web resources through their browsing history. But these are not the most convenient methods, because all modern browsers have an effective function with which you can quickly (with just 1 click) add a site to your bookmarks.

How to bookmark a page in the browser

Browsers have several types of bookmarks:

  • Standard bookmarks;
  • Visual bookmarks;
  • Moreover, this standard is supported by all popular browsers: Google Chrome, Opera, Mozilla Firefox, Yandex browser.

    Let's figure out how to bookmark a page in a browser using each of the options.

    How to add a website page to regular bookmarks in a browser

    To add a site page to regular bookmarks:

  • Open the page you want to save;
  • In the upper right corner of the browser, click on the star icon (in Opera - a heart).
    All! Bookmark added!
  • In addition, you can quickly save pages to bookmarks using hotkeys: Ctrl+D.

    How to open a saved bookmark

    There's just one small thing to do - you need to find out how to open the bookmarked page. And you can do this in several ways:


    How to add a site to visual bookmarks

    Unfortunately, you cannot add a site to visual bookmarks in Google Chrome in the standard way. Chrome's visual bookmarks show the most visited sites and the user does not have the ability to edit them or add new ones. You can only delete. But there is a way out! You can install the extension.

    With this extension, the sequence of actions for all browsers will be almost identical.


    Online services for adding sites to bookmarks

    An alternative to adding bookmarks using standard browser tools are online services that perform all the same functions.

    This article will talk about different ways to add folders, files and programs to the “Favorites” list of the file manager of the Windows operating system - Explorer.

    In the Windows operating system, there is a “Favorites” list in Explorer. To this list, by default, the operating system adds links to certain folders (for example, “Desktop”), as well as to the folders of some programs after they are installed (for example, cloud file storage folders Google Drive, OneDrive, Yandex.Disk and others).

    You can easily add other new folders to the Favorites list, or remove folders located there from the Favorites list.

    First, let's look at adding links to folders to the Favorites list, as well as removing them from this list.

    Removing a folder from Favorites

    To remove a folder from the “Favorites” list, you just need to move the mouse cursor to the desired folder and click on the right mouse button. In the context menu you need to select the “Delete” item and after that the folder will be deleted from this list.

    Adding a folder to Favorites

    To add a new folder to Favorites, you must first open File Explorer. Then you need to select the desired folder and simply drag it, while holding down the mouse button, into the Explorer window into the “Favorites” list. In this case, the inscription “Create a link to Favorites” will be visible next to the dragged folder.

    You can add a folder in another way. To do this, you need to open Explorer, and then in the Explorer window, open the folder that you want to add to the Favorites list. In this image, the CD-DVD folder is selected.

    After this, a new folder appears in “Favorites”, in the example given - the “CD-DVD” folder.

    Recover deleted folders to Favorites

    After removing the default folder links, you can restore them. To do this, right-click on “Favorites”, and then select “Restore Favorite Links” from the context menu.

    Deleted links to folders that were set to Favorites by default will be restored. This action will not affect previously added folders to Favorites; links to these folders will remain in the Favorites list.

    Adding programs to Favorites

    Using the methods described above, you cannot add program shortcuts to Favorites. When you try to move a program shortcut to “Favorites”, the message “Could not be placed in “Favorites”” appears.

    You can work around this obstacle by opening the Links folder, which contains the contents of the Favorites list.

    If the program that you need to add to “Favorites” does not have a shortcut, then you need to create a shortcut for this program and send it to the Desktop.

    A shortcut for a program is created in this way - “Start” menu => “All programs” => Select the program and right-click on it => in the context menu select “Create shortcut” => “You cannot create a shortcut in this folder. Should I put it on my desktop?” => “Yes.” Now the shortcut for the selected program is placed in the Desktop folder.

    After the folder with the program shortcut has been opened in Explorer or the shortcut of the selected program is on the Desktop, you need to open the Start menu and open your personal folder (the name of your user folder) in the very top right corner. The contents of the Favorites list are located in the Links folder.

    Open File Explorer, and then drag a program shortcut to the Links folder from the folder that contains the shortcut for the selected program. If the shortcut for the selected program is on the Desktop, then simply drag the shortcut to the “Links” folder.

    In the image, I dragged the Skype program shortcut into the Links folder, and immediately after that the Skype shortcut appeared in the Favorites list. In the Favorites list, program shortcuts are displayed without an arrow.

    Adding files to Favorites

    In exactly this way, you can add individual files to the Favorites list. First you need to select a file that will be placed in the “Favorites” list.

    For the example, I selected a “Word document” named “Questions.” You will need to right-click on the selected file and select “Create shortcut” in the context menu.

    Before moving a file shortcut, you can remove the ending “Shortcut” from the file shortcut so that the shortcut name does not differ from the file name. This way the label will simply look more beautiful.

    To do this, right-click on the shortcut, and in the context menu select “Rename”, and then remove unnecessary words from the name of the file shortcut.

    After these steps, you need to open the “Links” folder, to do this you need to follow this path - “Start” menu => “Open a personal folder” => “Links”.

    Now drag the file's shortcut from the folder it's currently in to the open Links folder. Immediately after this, a shortcut to the Questions file appears in the Favorites list.

    In order to remove added programs and files from the Favorites list, you need to move the mouse cursor over the selected file and select “Delete” in the context menu.

    Conclusions of the article

    If necessary, the user can add files and folders to the Favorites list in Windows Explorer. If a program or file is not needed in your favorites, you can remove it from there.

    Any modern browser has a function for adding sites to your favorites list. Thus, the user can save his favorite sites and keep them always at hand for quick access. But for a long time, the “Add to Favorites” button for the site was popular. This function somewhat simplifies the process of adding a site to bookmarks and allows you to once again remind the user that it would be a good idea to add the site to favorites.

    Psychology is at work here. The fact is that when a user sees an offer to add to favorites on a website, he wonders whether he needs it. And if he decides that the site is really useful, he will add it to his list of bookmarks. And if there is no offer, the user will not even think about this issue. That is why it is necessary to offer: whoever knocks, the door is opened.

    Of course, most visitors bookmark pages not because they plan to return to the site every day, but “just in case they need it,” and, as a rule, do not return. But some users return regularly and form the core of visitors. One way or another, if people return to the site, it means that your site is useful, and this will have a positive impact on the behavioral factors of your resource, which will allow search engines to treat it with more confidence.

    You need to place the “Add to Favorites” button on your website in a visible place, but not too intrusively. The best place for such a button is the header or side part of the site.

    There is no need to make the button too huge or too small. Remember that the button should fit into the overall design of the site, and not be too intrusive or too inconspicuous.

    Code for the "Add site to favorites" button

    Most modern browsers, with the advent of the HTML5 standard, support the rel="sidebar" attribute.

    Adding a site to your favorites - "Nubex" function addSite() ( if (document.all) window.external.addFavorite("http://site", "Site builder "Nubex""); )

    Don't forget to bookmark our site! (For Google Chrome browser, press Ctrl+D)

    Add site to favorites

    But remember that in the Google Chrome browser it is not possible to bookmark a site using a button on the site. There is a special key combination for this: Ctrl+D, so be sure to inform the user about this.

    You can track the number of users who have bookmarked your site, for example, using the Yandex.Metrica service (“Attendance” - “Conversions”).