How To Link To Specific Text On A Web Page

Sharing links has enabled us to find relevant information more quickly than ever, but it’s challenging to do so with text-rich web pages. Finding useful data requires scanning the whole text, which is tedious and time-consuming. However, using your web browser to create preprogrammed links leading to highlighted text will allow you to share pertinent information with others.

How To Link To Specific Text On A Web Page

This guide will discuss creating a direct scroll-to-text link on several web browsers using a PC or Mac.

Link to Specific Text on a Web Page on a PC

If you’re a PC user, two methods will allow you to create links that take your recipient to a specific phrase or paragraph of a web page. You can either create shareable bookmarks or use an extension for your preferred browser.

Creating Bookmarklets

Bookmarks packed with small portions of JavaScript codes are called bookmarklets. When you click on a specific bookmark link, it will perform a predefined action. If used to take users to specific web page sections, the bookmarklet will open the website and zero in on the highlighted text area. This feature works on Chrome-based browsers like Google Chrome and Microsoft Edge.

Creating a clickable bookmarklet on Google Chrome is a relatively straightforward process. To do so:

  1. Hold down “Ctrl + Shift + B” to enable your browser’s bookmark or favorite tab.
    How To Link To Specific Text On A Web Page
  2. Press “Ctrl + Shift + O” to enter the Chrome “Bookmarks Manager.” Alternatively, select “Settings,” tap “Bookmarks,” and press “Bookmarks Manager.”
    How To Link To Specific Text On A Web Page
    How To Link To Specific Text On A Web Page
  3. Once in the “Bookmarks Manager” section, right-click and choose the “Add new bookmark” option.
    How To Link To Specific Text On A Web Page
  4. Paste the following line of code into the pop-up URL field:
    “javascript:(function(){const selectedText=getSelection().toString();const newUrl=new URL(location);newUrl.hash=`:~:text=${encodeURIComponent(selectedText)}`;window.open(newUrl);})();”
    How To Link To Specific Text On A Web Page
  5. Rename the bookmarklet. Use the name “Share with Friend” or a similar variation and tap the “Save” button.
    How To Link To Specific Text On A Web Page

When you’ve created your bookmarklet, you can use it to go directly to a specific part of a website. Here’s how it works:

  1. Launch a web page, select a part of its text using the cursor, and tap the “Share with Friend” bookmarklet.
    How To Link To Specific Text On A Web Page
  2. The action will generate a new window, and the selected text will be highlighted in yellow.
    How To Link To Specific Text On A Web Page
  3. Copy the link.

Once someone clicks on this customized link, the web page will automatically scroll to the section of highlighted text. Only users using Google Chrome or Microsoft Edge browser will be able to click on your link.

It’s also possible to make bookmarklets in the latest Microsoft Edge version. To do so:

  1. Hold “Ctrl + Shift + O” to go to the “Manage favorites” tab. Alternatively, open the “Edge menu,” select “Favorites,” and tap “Manage favorites.”
    How To Link To Specific Text On A Web Page
  2. Navigate to the “Favorites” section and right-click.
  3. Choose “Add favorite.”
    How To Link To Specific Text On A Web Page
  4. Enter the following JavaScript excerpt in the pop-up URL field:
     “javascript:(function(){const selectedText=getSelection().toString();const newUrl=new URL(location);newUrl.hash=`:~:text=${encodeURIComponent(selectedText)}`;window.open(newUrl);})();”
    How To Link To Specific Text On A Web Page
  5. Change the name of the bookmarklet to “Share with Friend.”
    How To Link To Specific Text On A Web Page

To use the bookmarklet to scroll to a specific text in Microsoft Edge:

  1. Open a web page and select a portion of text with your cursor.
    How To Link To Specific Text On A Web Page
  2. Tap the “Share with Friend” bookmarklet.
    How To Link To Specific Text On A Web Page
  3. A new window will appear, highlighting the selected text in yellow.
    How To Link To Specific Text On A Web Page
  4. Copy the window’s URL from the address bar.
    How To Link To Specific Text On A Web Page

When you send the link to others, they will be taken directly to the part of the web page where the highlighted text is located. Only Chrome and Edge users will be able to use the bookmarklet link.

Using the Link to Text Fragment Extension

If you don’t want to create links manually, extensions like Link to Text Fragments are another excellent option. It creates a preprogrammed hyperlink that takes users to a web page’s selected words, phrases, and paragraphs.

To use the extension in Google Chrome:

  1. Install the extension from the Google Store.
    How To Link To Specific Text On A Web Page
  2. Press the “Add to Chrome” button.
    How To Link To Specific Text On A Web Page
  3. A pop-up message will prompt you to confirm the action. Tap “Add Extension.”
    How To Link To Specific Text On A Web Page
  4. Pin the add-on in the extension bar so that it’s always easily accessible.
    How To Link To Specific Text On A Web Page
  5. Open a web page and select a phrase or paragraph.
    How To Link To Specific Text On A Web Page
  6. Right-click and choose the “Copy Link to Selected Text” option.
    How To Link To Specific Text On A Web Page

The selected text will turn yellow, indicating that you’ve successfully created and copied the link. The next time you or someone else uses the link, the web page will automatically scroll to the highlighted text.

The Link to Text Fragment feature also works with the Microsoft Edge browser. Here’s how to use it:

  1. Go to the Google Store and install the extension.
    How To Link To Specific Text On A Web Page
  2. Click on the “Add to Chrome” button.
    How To Link To Specific Text On A Web Page
  3. The browser will ask you to confirm installing the add-on. Select “Add Extension.”
    How To Link To Specific Text On A Web Page
  4. Pin the Link to Text icon for easy access if you use multiple extensions.
    How To Link To Specific Text On A Web Page
  5. Launch a website and select a portion of text.
    How To Link To Specific Text On A Web Page
  6. Right-click and tap “Copy Link to Selected Text.”
    How To Link To Specific Text On A Web Page

When the selected text turns yellow, the PC’ has copied the hyperlink. When someone taps on your link, the first thing they’ll see will be highlighted part of the web page.

Link to Specific Text on a Web Page on a Mac

Safari is the built-in internet browsing option for Mac products and offers no extension that allows users to create predefined text links. Other browsers like Mozilla Firefox and Opera provide no link creation solutions. Luckily, Mac devices work well with Microsoft programs, so you can highlight text and make hyperlinks on Google Chrome or Microsoft Edge.

The Link to Text Fragment extension will enable you to create a scroll-to-text link on your Mac. To do so in Google Chrome:

  1. Go to the Chrome Web Store and install the Link to Text Fragment extension.
    How To Link To Specific Text On A Web Page
  2. Press “Add to Chrome.”
    How To Link To Specific Text On A Web Page
  3. Open a web page with the text you want to link.
    How To Link To Specific Text On A Web Page
  4. Select the text by dragging your cursor.
    How To Link To Specific Text On A Web Page
  5. Right-click the selected text and tap “Copy Link to Selected Text” from the context menu.
    How To Link To Specific Text On A Web Page
  6. Once you’ve copied the link, the text will become marked with yellow. This indicates the copied link is saved on the clipboard.

Anyone who clicks on your link will see the highlighted excerpt first.

Since the Link to Text add-on works on Microsoft Edge, you can use this browser on your Mac to make specific text links. To do so:

  1. Install the extension from the Chrome Store.
    How To Link To Specific Text On A Web Page
  2. Tap the “Add to Chrome” button.
    How To Link To Specific Text On A Web Page
  3. Select “Add Extension” when prompted to confirm the action.
    How To Link To Specific Text On A Web Page
  4. Open a web page with a piece of text you wish to link.
    How To Link To Specific Text On A Web Page
  5. Use your cursor to select the text.
    How To Link To Specific Text On A Web Page
  6. Right-click the text you’ve selected and click “Copy Link to Selected Text.”
    How To Link To Specific Text On A Web Page
  7. The text will turn yellow, signaling the scroll-to-text link has been stored on the clipboard.

Whenever someone uses the link you’ve created, the web page will scroll to the highlighted text.

Only Chrome or Edge users can access the web page through your link and see the marked text. If you’ve sent the link to someone who uses a different browser, they will see the page as it usually appears without the highlighted text area.

Share Information More Efficiently with Direct Links

In an age of increasing online information access, it’s essential to have a way to get to important texts more efficiently. To make links that will take users to texts you’ve selected, use the Chrome or Edge browser on your PC or Mac. You can create scroll-to-text links with bookmarklets or the Link to Text Extension if you have a PC. Apple still hasn’t developed a similar add-on, but the extension also works with Mac devices.

How often do you highlight texts to share with others? Which of the above methods do you prefer for creating links? Let us know in the comment section below.

Sign up and earn $1000 a day ⋙

Driver Booster 12 Free: Keep 9.5M+ Drivers Up-to-Date in 1-Click

Driver Booster 12 Free: Keep 9.5M+ Drivers Up-to-Date in 1-Click

Driver Booster 12 Free is an effective tool that will keep your computers drivers up to date, which will make the system run faster and more reliably. This driver updater from IObit keeps your PC running at its best by checking for lost, out-of-date, or broken drivers immediately.

Advanced SystemCare 17 Free Review 2024 - Your Best PC Optimizer

Advanced SystemCare 17 Free Review 2024 - Your Best PC Optimizer

In an era where digital efficiency is paramount, Advanced SystemCare 17 Free emerges as a beacon for those seeking to enhance their PC's performance.

Summary of Movies & TV application shortcuts on Windows 10

Summary of Movies & TV application shortcuts on Windows 10

Summary of Movies & TV application shortcuts on Windows 10, Summary of Movies & TV application shortcuts on Windows 10 to bring you a great experience. Maybe

How to fix Messages Failed to Load error on Discord for Windows

How to fix Messages Failed to Load error on Discord for Windows

How to fix Messages Failed to Load error on Discord for Windows, Discord isn't fun if you can't read what other people write. Here's how to fix Messages error

How to display the This PC icon on the Windows 11 desktop

How to display the This PC icon on the Windows 11 desktop

How to display the This PC icon on the Windows 11 desktop, During the process of using Windows 11, many users need to access This PC (management).

How to find information in the Windows Registry quickly

How to find information in the Windows Registry quickly

How to find information in the Windows Registry quickly, Do you find it difficult to find information in the Windows Registry? So below are quick ways to find the registry

How to limit the number of failed login attempts on Windows 10

How to limit the number of failed login attempts on Windows 10

How to limit the number of failed login attempts on Windows 10. Limiting the number of failed password login attempts on Windows 10 helps increase computer security. Here's how

How to create fake error messages in Windows

How to create fake error messages in Windows

How to create fake error messages in Windows, Windows can come up with some pretty creative error messages but why don't you try creating your own content for them to make fun of?

Ways to open Windows Tools in Windows 11

Ways to open Windows Tools in Windows 11

Ways to open Windows Tools in Windows 11, Windows Administrative Tools or Windows Tools are still useful on Windows 11. Here's how to find Windows Tools in Windows 11.

How to fix Windows Quick Assist not working error

How to fix Windows Quick Assist not working error

How to fix Windows Quick Assist not working error, Windows Quick Assist helps you connect to a remote PC easily. However, sometimes it also generates errors. But,

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar, How to pin Office files to the taskbar icon on Windows 11? Invite

How to fix the error of not being able to install software on Windows

How to fix the error of not being able to install software on Windows

How to fix the error of not being able to install software on Windows, Why can't you install apps or software on Windows 10/11? Here's everything you need to know about how to fix it

Instructions for deleting or changing PIN on Windows 11

Instructions for deleting or changing PIN on Windows 11

Instructions for deleting or changing the PIN code on Windows 11, In Windows 11, the PIN code is a very useful and convenient security tool for users. However some people

How to fix There Are Currently No Power Options Available error in Windows 10

How to fix There Are Currently No Power Options Available error in Windows 10

How to fix There Are Currently No Power Options Available error in Windows 10, Can't select power mode in Windows 10, what should I do? Here's how to fix the error

The simplest way to fix Photos application errors on Windows 10

The simplest way to fix Photos application errors on Windows 10

The simplest way to fix Photos app errors on Windows 10, what should I do if Microsoft Photos doesn't work? Don't worry about ways to fix Photos app errors on Windows

Instructions for installing keyboard shortcuts to switch input languages ​​on Windows 11

Instructions for installing keyboard shortcuts to switch input languages ​​on Windows 11

Instructions for installing shortcuts to switch input languages ​​on Windows 11. During the process of using Windows, users will often have to switch between methods.

How to check supported power status on Windows 11

How to check supported power status on Windows 11

How to check power status is supported on Windows 11, Windows 11 can handle many different power states. Here's how to check the power status

How to switch from 2.4GHz to 5GHz in Windows 10

How to switch from 2.4GHz to 5GHz in Windows 10

How to switch from 2.4GHz to 5GHz in Windows 10, If you want to find a quick and simple way to speed up the Internet, changing the WiFi band from 2.4GHz to 5GHz may help.

How to fix Not Enough Memory to Run Microsoft Excel error on Windows

How to fix Not Enough Memory to Run Microsoft Excel error on Windows

How to fix Not Enough Memory to Run Microsoft Excel error on Windows, Are you having an error of not enough memory to run Microsoft Excel? So, how to fix Not Enough Memory error

Ways to find all video files on Windows

Ways to find all video files on Windows

Ways to find all video files on Windows, Can't find recorded and saved videos on PC. Below are ways to help you find all clips on Windows.