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 ⋙

How to fix error 0xa00f4288 in Camera app on Windows 10 & 11

How to fix error 0xa00f4288 in Camera app on Windows 10 & 11

How to fix error 0xa00f4288 in the Camera app on Windows 10 & 11. Windows' default Camera App is the main tool for taking photos. So in the case of Win 10 & 11 cameras

How to open multiple programs with one shortcut on Windows 10

How to open multiple programs with one shortcut on Windows 10

How to open multiple programs with one shortcut on Windows 10, You can actually open multiple programs at the same time with a single key. Here's how to use one

How to delete old boot menu options on Windows

How to delete old boot menu options on Windows

How to remove old boot menu options on Windows, Windows 10 dual boot is useful but can leave redundant boot options in the menu. Here's how to remove the menu

Instructions for fixing Snipping Tool errors on Windows 11

Instructions for fixing Snipping Tool errors on Windows 11

Instructions for fixing Snipping Tool errors on Windows 11. Windows 11 has officially been released for a while, but during use there are still many errors

Instructions for entering text by voice on Windows 11

Instructions for entering text by voice on Windows 11

Instructions for entering text by voice on Windows 11, Entering text by voice on Windows 11 helps you significantly improve your work efficiency. Here's how

How to turn on/off Sticky Key on Windows 11

How to turn on/off Sticky Key on Windows 11

How to turn on/off Sticky Key on Windows 11, Sticky Key makes the PC keyboard easier to use. Here's how to turn Sticky Key on and off on Windows 11.

What is Windows Modules Installer?

What is Windows Modules Installer?

What is Windows Modules Installer?, Windows Modules Installer sometimes takes up a lot of system resources. Is Windows Modules Installer important or not?

How to increase volume in Windows 10

How to increase volume in Windows 10

How to increase volume in Windows 10, How to increase computer volume to maximum level? Let's learn with WebTech360 how to increase Windows 10 computer volume

How to use Windows 11 Installation Assistant to install Windows 11

How to use Windows 11 Installation Assistant to install Windows 11

How to use Windows 11 Installation Assistant to install Windows 11, Windows 11 Installation Assistant is one of the best ways to upgrade your computer to Windows 11.

How to turn off the startup sound in Windows 11

How to turn off the startup sound in Windows 11

How to turn off the startup sound in Windows 11, Does the PC startup sound bother you? Then please refer to how to turn off the startup sound for PC running Windows 11 below

Instructions for changing the screen lock timeout on Windows 11

Instructions for changing the screen lock timeout on Windows 11

Instructions for changing the screen lock timeout on Windows 11. While using Windows 11, there are times when users will need to leave the computer for a period of time.

Windows 11 optimization guide to increase FPS when playing games

Windows 11 optimization guide to increase FPS when playing games

Instructions for optimizing Windows 11 to help increase FPS when playing games, Windows 11 is an operating system platform that is introduced as more improved in gaming quality, helping games

Windows 11: How to use and customize the Quick Settings menu

Windows 11: How to use and customize the Quick Settings menu

Windows 11: How to use and customize the Quick Settings menu, Windows 11 brings some great new features and the Quick Settings menu is no exception. Here it is

How to fix the error of not being able to start Windows 11 after enabling Hyper-V

How to fix the error of not being able to start Windows 11 after enabling Hyper-V

How to fix the error of not being able to start Windows 11 after turning on Hyper-V. Hyper-V helps you run virtual machines on Windows. However, after enabling Hyper-V, you cannot post again

How to fix error 0xc00007b in Windows

How to fix error 0xc00007b in Windows

How to fix error 0xc00007b in Windows, Windows displays error 0xc00007b when the application does not work properly. Below is a step-by-step guide to fix error 0xc00007b in

How to change the login screen on Windows 10/11

How to change the login screen on Windows 10/11

How to change the login screen on Windows 10/11, Don't like the blurry screen when logging in on Windows 10/11? So, instructions on how to turn off and change the login screen

How to uninstall drivers in Windows 11

How to uninstall drivers in Windows 11

How to uninstall drivers in Windows 11, Do you want to remove unwanted drivers on Windows 11? Then please see instructions on how to remove drivers in Windows

How to fix No Internet Secured error on Windows 10

How to fix No Internet Secured error on Windows 10

How to fix No Internet Secured error on Windows 10, No Internet Secured is a common error on Windows 10. Below are simple ways to fix No Internet Secured error

How to fix the error of not being able to save Excel files on Windows

How to fix the error of not being able to save Excel files on Windows

How to fix the error of not being able to save an Excel file on Windows. If you can't save the Excel file, don't worry too much. Below are ways to fix the error of not being able to save the above Excel file

How to open DMG files on Windows

How to open DMG files on Windows

How to open DMG files on Windows, DMG is a file format specific to the macOS operating system. However, you still have a way to open DMG files on Windows.