Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Copying a web page’s title and URL is a common task when saving references, sharing links, creating s, or documenting research. Microsoft Edge does not include a built-in one-click command for copying both together in a custom format, but a simple bookmarklet can fill that gap quickly.
A bookmarklet is a saved favorite that runs a small piece of JavaScript instead of opening a website. With the right code, you can click the favorite in Edge and copy the current page title and address to your clipboard, ready to paste into an email, document, spreadsheet, taking app, or task manager.
As an Amazon Associate I earn from qualifying purchases.
This guide covers the bookmarklet code, how to add it to Edge Favorites, how to use it on any page, ways to customize the copied format, and what to check if clipboard permissions or browser restrictions prevent it from working as expected.
Recommended Free Tools
What the Copy Title and URL Bookmarklet Does
A Copy Title and URL bookmarklet is a small JavaScript-powered favorite that runs in Microsoft Edge when you click it. Instead of saving the page as a normal bookmark, it grabs information from the page you are currently viewing, usually the page title and the address shown in the browser, then places that text on your clipboard. You can then paste it into an email, document, task manager, , spreadsheet, Markdown file, or chat message.
#1 Best Overall
- 14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
For example, if you are viewing a Microsoft Learn article, a news story, or an internal company page, the bookmarklet can copy both the readable page title and the full web address in one action. This saves you from manually selecting the title, copying it, clicking the address bar, copying the URL, and then formatting both pieces yourself. It is especially useful when collecting references, sharing troubleshooting links, documenting research, or building lists of resources.
The bookmarklet typically reads two browser-provided values: document.title for the page title and location.href for the current URL. It then combines them into a chosen format before sending the result to the clipboard. A simple plain-text output might look like this:
- Page Title – https://example.com/page
Other formats are possible depending on where you plan to paste the result. If you write in Markdown, the bookmarklet can copy a Markdown link such as Page Title. If you keep s in plain text, you may prefer the title on the first line and the URL on the second line. If you paste into HTML-aware editors, you can adapt the bookmarklet to produce an anchor tag, although many users prefer plain text or Markdown because they work reliably across more apps.
Free tools Windows power users keep installed
One-click scans. No signup required.
In Microsoft Edge, a bookmarklet is stored on the Favorites bar like any other favorite, but its address begins with javascript: instead of https://. When clicked, Edge runs that JavaScript against the active tab. The bookmarklet does not require an extension, a separate app, or a Microsoft account sync setting. It is also easy to edit later if you want to change the copied format, add a separator, include the site name, or remove tracking parameters from the URL.
The main benefit is speed. Once the favorite is set up, copying a clean reference becomes a one-click action. The page does not need to be bookmarked permanently, and no extra toolbar button is installed beyond the favorite you create. As long as the page allows the clipboard action and Edge permits the script to run in that context, the bookmarklet can turn the current tab’s title and address into ready-to-paste text.
Bookmarklet Code for Microsoft Edge
The bookmarklet is a small piece of JavaScript saved as a Microsoft Edge favorite. When you click it, the script reads the current page title from document.title, gets the page address from location.href, formats both values as text, and writes that text to the clipboard.
Use this version if you want the copied result to appear on two lines, with the page title first and the URL below it:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
javascript:(async()=>{const text=document.title+"\n"+location.href;try{await navigator.clipboard.writeText(text);alert("Copied:\n\n"+text);}catch(e){prompt("Copy this:",text);}})();
This bookmarklet uses the modern Clipboard API through navigator.clipboard.writeText(). Microsoft Edge supports this API on secure pages, such as normal https:// websites. The try and catch parts make the bookmarklet more reliable: if direct clipboard writing is blocked, it opens a prompt box containing the same title and URL so you can copy the text manually.
Readable version of the script
The single-line bookmarklet above is the version you save in Edge. The expanded version below shows the same script in a more readable form:
(async () => {
const text = document.title + "\n" + location.href;
try {
await navigator.clipboard.writeText(text);
alert("Copied:\n\n" + text);
} catch (e) {
prompt("Copy this:", text);
}
})();
The alert() message is optional, but it gives quick confirmation that the title and URL were copied. If you prefer a quieter bookmarklet, you can remove the alert and keep only the clipboard action and fallback prompt.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Alternative one-line formats
- Title and URL on one line:
javascript:(async()=>{const text=document.title+" - "+location.href;try{await navigator.clipboard.writeText(text);alert("Copied:\n\n"+text);}catch(e){prompt("Copy this:",text);}})(); - Markdown link:
javascript:(async()=>{const text="["+document.title+"]("+location.href+")";try{await navigator.clipboard.writeText(text);alert("Copied:\n\n"+text);}catch(e){prompt("Copy this:",text);}})(); - HTML link:
javascript:(async()=>{const text='<a href="'+location.href+'">'+document.title+'</a>';try{await navigator.clipboard.writeText(text);alert("Copied:\n\n"+text);}catch(e){prompt("Copy this:",text);}})();
For most users, the first two-line version is the best starting point because it works well in s, emails, documents, support tickets, and research logs. The Markdown version is better if you often paste links into GitHub, Markdown editors, documentation tools, or static site content.
How to Add the Bookmarklet to Edge Favorites
To use the copy title and URL script as a bookmarklet in Microsoft Edge, you need to save it as a Favorite and place the JavaScript code in the Favorite’s URL field. Once saved, clicking that Favorite runs the script on the current tab instead of opening a normal web address.
Step 1: Show the Favorites bar
The bookmarklet is easiest to use from the Favorites bar because it stays one click away while you browse. In Edge, press Ctrl + Shift + B to show or hide the Favorites bar. You can also open Settings and more using the three-dot menu, go to Favorites, and enable Show favorites bar. Choose Always if you want the bookmarklet visible on every page.
Step 2: Create a temporary favorite
Open any website, such as example.com, then click the star icon in the address bar to add it as a Favorite. Give it a short name such as Copy Title + URL, and save it to the Favorites bar. The page you save does not matter, because you will replace its address with the bookmarklet code in the next step.
Step 3: Edit the favorite and paste the bookmarklet code
Right-click the new Favorite on the Favorites bar and select Edit. In the edit box, keep the name as something recognizable, then replace the existing URL with your JavaScript bookmarklet code. The address must begin with javascript: and should be pasted as a single line.
- Name: Copy Title + URL
- URL: paste the full bookmarklet code that starts with javascript:
- Folder: Favorites bar
After pasting the code, click Save. If Edge removes part of the code or refuses to save it, make sure you are editing an existing Favorite rather than typing the code directly into the address bar. Also confirm that the code was copied completely, with no extra spaces before javascript:.
Rank #2
- 256 GB SSD of storage.
- Multitasking is easy with 16GB of RAM
- Equipped with a blazing fast Core i5 2.00 GHz processor.
Alternative method: Add the bookmarklet through Favorites manager
You can also add or edit the bookmarklet from the Favorites manager. Press Ctrl + Shift + O to open Favorites, select the Favorites bar folder, then create or edit a Favorite there. This method is useful if the Favorites bar is crowded or if right-click editing is difficult on your device.
- Press Ctrl + Shift + O in Microsoft Edge.
- Open the Favorites bar folder.
- Create a new Favorite or edit an existing one.
- Set the name to Copy Title + URL.
- Paste the bookmarklet script into the URL field.
- Save the Favorite.
When finished, visit a normal web page and click the new Copy Title + URL Favorite. If the bookmarklet was added correctly, it will run on the active page and copy the formatted title and address to your clipboard. Avoid testing it on internal Edge pages such as edge://settings, the new tab page, the Chrome Web Store, or browser extension pages, because browsers restrict scripts on those pages.
How to Use the Bookmarklet on Any Web Page
After the bookmarklet has been added to the Favorites bar in Microsoft Edge, using it is the same as clicking any other favorite. Open the web page you want to capture, wait for the page title and address to finish loading, and then click the bookmarklet on the Favorites bar. The script reads the current tab’s document.title and location.href, formats them according to the bookmarklet code, and attempts to place the result on your clipboard.
For example, if you are viewing an article titled Microsoft Edge Keyboard Shortcuts at https://example.com/edge-shortcuts, clicking the bookmarklet can copy a plain-text result such as:
Microsoft Edge Keyboard Shortcuts
https://example.com/edge-shortcuts
You can then paste that text into an email, document, taking app, spreadsheet, issue tracker, CMS field, or chat message with Ctrl + V. This is useful when collecting research links, citing sources, saving reference pages, sharing support articles, or building lists of URLs without manually selecting the address bar and copying the title separately.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Repair Windows errors before they cause bigger problems3Scan for outdated or missing drivers - takes under a minuteBasic usage steps
- Open Microsoft Edge and go to the page you want to copy.
- Make sure the page has fully loaded, especially on sites that update the title dynamically.
- Click the bookmarklet in the Favorites bar.
- If the bookmarklet shows an alert or confirmation message, confirm that the copy action completed.
- Place your cursor in the destination app and press Ctrl + V to paste the copied title and URL.
The bookmarklet works best on normal web pages such as articles, product pages, documentation pages, search result pages, and internal web apps. It should also work in most Chromium-based Edge profiles as long as JavaScript is allowed on the page and clipboard access is permitted for the user action. Because the click on the favorite counts as a direct user action, modern clipboard APIs are more likely to allow the copy operation than they would from a background script running automatically.
Pages where behavior may differ
- New tab page: Edge’s built-in new tab page may restrict bookmarklet execution.
- Settings and browser pages: URLs such as edge://settings, edge://favorites, and extension pages usually block page-level JavaScript bookmarklets.
- PDF files: Built-in PDF viewer pages may not expose the title in the same way as a regular HTML page.
- Web apps: Single-page apps may change the visible page content without immediately updating the browser title or URL.
- Restricted corporate sites: Security policies may block clipboard writes or inline JavaScript execution.
If the pasted result is outdated or not what you expected, refresh the page and click the bookmarklet again. On sites that change the title after loading, such as dashboards or documentation portals, wait a second or two before clicking. If the page uses tabs, filters, or modal windows without changing the URL, the bookmarklet will still copy the current browser address, not necessarily a direct link to the exact on-screen state unless the site stores that state in the URL.
Customize the Copied Title and URL Format
You can change the bookmarklet output by editing the text that gets passed to the clipboard. The two most useful page values are document.title, which returns the current tab’s title, and location.href, which returns the full URL. By combining those values with plain text, spaces, line breaks, or Markdown syntax, you can make the copied result fit your s app, email workflow, documentation, spreadsheet, or CMS.
A simple plain-text format places the page title on one line and the URL on the next line. This is easy to read and works well in email, support tickets, and research s:
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →javascript:(async()=>{const text=document.title+'\n'+location.href;await navigator.clipboard.writeText(text);})();
If you prefer a single-line format, use a separator between the title and URL. For example, this version copies the title, a dash, and then the URL:
javascript:(async()=>{const text=document.title+' - '+location.href;await navigator.clipboard.writeText(text);})();
Common output formats
| Format | Bookmarklet text value | Example output |
|---|---|---|
| Title and URL on separate lines | document.title+'\n'+location.href |
Example Page |
| Title followed by URL | document.title+' - '+location.href |
Example Page - https://example.com/page |
| URL followed by title | location.href+' - '+document.title |
https://example.com/page - Example Page |
| Markdown link | '['+document.title+']('+location.href+')' |
[Example Page](https://example.com/page) |
| HTML link | '<a href="'+location.href+'">'+document.title+'</a>' |
<a href="https://example.com/page">Example Page</a> |
For Markdown-based writing tools, the Markdown link version is often the most convenient because you can paste a ready-to-use link directly into GitHub issues, README files, Obsidian, Notion pages that support Markdown input, or static-site content. The complete Markdown bookmarklet looks like this:
javascript:(async()=>{const text='['+document.title+']('+location.href+')';await navigator.clipboard.writeText(text);})();
You can also add labels or extra spacing. For example, if you collect sources for research, you may want a labeled block with the title and URL clearly identified:
javascript:(async()=>{const text='Title: '+document.title+'\nURL: '+location.href;await navigator.clipboard.writeText(text);})();
Rank #3
- WINDOWS 11 | STABLE PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 system, this laptop delivers stable performance for everyday computing tasks. It supports web browsing, online learning, document editing, email communication, and basic office work with optimized power efficiency, providing a practical and reliable experience for essential daily use for daily use.
- 15.6” FHD IPS DISPLAY: Features a 15.6-inch Full HD IPS display with narrow bezels, offering wider viewing angles and clearer image details compared to standard panels. The improved screen-to-body ratio enhances visual experience for study, reading, document work, and video playback, making it suitable for both productivity and entertainment use.
- 4GB DDR4 + 128GB eMMC STORAGE: Equipped with 4GB DDR4 memory and 128GB eMMC storage for everyday basics such as browsing, documents, email, and online learning platforms. The built-in TF card slot supports storage expansion up to 1TB, giving you more flexibility for files, photos, videos, and daily documents. TF card not included.
- CONNECTIVITY & PORTS: Includes 1× TF card slot, 2× USB 3.2 Gen1 ports, and 2× full-featured Type-C ports (USB 3.2 Gen1). The Type-C ports support data transfer, charging, and video output, enabling flexible connection with external devices such as monitors, storage, and peripherals for daily work and study use.
- LIGHTWEIGHT DESIGN | ONLINE COMMUNICATION: Designed with a slim, portable profile, this laptop is easy to carry for school, commuting, and travel. A built-in 1MP front camera supports online classes, video meetings, remote communication, and everyday conferencing. The 3300mAh battery works with the low-power system design to support practical daily use, while thermal optimization helps maintain quieter operation during extended tasks.
Optional cleanup for page titles
Some websites add extra branding, section names, or repeated separators to the browser title, such as Article Name - Site Name. If you only want the first part, you can split the title at a separator and copy the trimmed result. This example keeps only the text before the first pipe character:
javascript:(async()=>{const title=document.title.split('|')[0].trim();const text=title+'\n'+location.href;await navigator.clipboard.writeText(text);})();
If the site uses a dash instead, change the separator to ' - '. Be careful with aggressive title cleanup, because some article titles legitimately contain dashes, pipes, or colons. For the most reliable bookmarklet, keep the original document.title; for a workflow tied to one specific website, a cleanup rule can save editing time after every paste.
Troubleshooting Clipboard and Permission Issues
If the Microsoft Edge bookmarklet does not copy the page title and URL, the issue is usually related to browser permissions, page security restrictions, or the way the bookmarklet was saved. Clipboard access from JavaScript is more restricted than normal page scripting, so a bookmarklet that works on one site may fail on another, especially on internal browser pages, PDF viewers, extension pages, or sites with strict security policies.
Check that the bookmarklet code was saved correctly
Open the favorite you created and confirm that the URL field begins with javascript:. Edge may sometimes strip or alter pasted JavaScript if it is entered incorrectly. Also check that the code is on one continuous line and that quotes, parentheses, and semicolons were not removed. If the favorite opens a search page instead of running the script, the code was likely pasted into the name field or saved as a normal web address rather than as the favorite’s URL.
- Correct location: paste the bookmarklet script into the favorite’s URL field.
- Correct prefix: the script must start with javascript:.
- No line breaks: use a single-line version of the bookmarklet.
- No smart quotes: replace curly quotation marks with straight quotes if copied from a formatted document.
Use the bookmarklet from a normal web page
Clipboard bookmarklets generally work best on standard https:// web pages. They may not run on Edge settings pages such as edge://settings, the new tab page, the Microsoft Edge Add-ons store, Chrome Web Store pages, local files, or browser-generated error pages. If nothing happens, test the bookmarklet on a regular site such as a news article, documentation page, or blog post. This helps separate a bookmarklet problem from a page-specific restriction.
Allow clipboard access when prompted
When the bookmarklet uses the modern Clipboard API, Edge may require the action to be triggered by a user gesture, such as clicking the favorite directly. If Edge displays a permission prompt, choose Allow. You can also review site permissions by selecting the lock icon in the address bar, opening Permissions for this site, and checking whether clipboard access is blocked. If clipboard access is blocked globally or for that site, reset the permission and run the bookmarklet again.
| Problem | Likely cause | Fix |
|---|---|---|
| Nothing is copied | The current page blocks scripts or clipboard writes | Try the bookmarklet on a normal HTTPS page |
| A search page opens | The JavaScript was not saved as the favorite URL | Edit the favorite and paste the code into the URL field |
| Permission prompt appears repeatedly | Clipboard permission is being reset or blocked | Check the site permissions from the address bar |
| Copied text is blank or incomplete | The page has an empty title or unusual document state | Refresh the page, wait for it to finish loading, then run the bookmarklet |
Try a fallback version if clipboard access fails
If navigator.clipboard.writeText() is blocked, use a fallback bookmarklet that places the formatted title and URL into a temporary text box, selects it, and runs the older copy command. This method is less modern but can work on pages where the Clipboard API is unavailable. If even the fallback fails, have the bookmarklet display the title and URL in a prompt box so you can press Ctrl+C manually.
Browser extensions, privacy tools, corporate policies, and managed Edge installations can also interfere with clipboard operations. If you use a work or school device, clipboard writing from scripts may be disabled by policy. In that case, the bookmarklet may still be able to show the formatted text, but automatic copying may not be available until the policy is changed by an administrator.
Frequently Asked Questions
Can a Microsoft Edge bookmarklet copy both the page title and URL with one click?
Yes. A JavaScript bookmarklet can read the current tab’s document title and page address, combine them into a formatted string, and copy that text to your clipboard. Once it is saved as a favorite in Edge, you can click it on most normal web pages to copy the title and URL instantly.
What JavaScript code should I use for an Edge copy title and URL bookmarklet?
A common version is javascript:(async()=>{await navigator.clipboard.writeText(document.title+'\n'+location.href);})();. This copies the page title on the first line and the URL on the second line. If clipboard access is blocked on a site, you may need to use a fallback version that opens a prompt with the text so you can copy it manually.
How do I add the bookmarklet to the Edge favorites bar?
First, show the favorites bar in Edge if it is hidden. Create any new favorite, then edit it and replace the URL field with the full JavaScript bookmarklet code. Give it a short name such as “Copy Title URL” so it is easy to click from the favorites bar.
Can I change the copied format to Markdown, HTML, or one line?
Yes. For Markdown, you can format the output as [Page Title](https://example.com). For a one-line plain text version, use the title, a separator such as a dash, and then the URL. You can edit the string inside the bookmarklet to match the format you paste most often into s, emails, CMS fields, or documentation.
Free tools Windows power users keep installed
One-click scans. No signup required.
What should I do if the bookmarklet does not copy anything in Microsoft Edge?
Clipboard access may fail on internal Edge pages, browser settings pages, extension pages, PDF viewers, or sites with strict security restrictions. Try running it on a regular HTTPS web page and make sure Edge has permission to use the clipboard. If it still fails, use a prompt-based fallback bookmarklet so the title and URL appear in a dialog that you can copy manually.
Bottom Line
A Microsoft Edge bookmarklet is a quick, lightweight way to copy the current page title and URL without installing an extension. Once saved to your Favorites bar, a single click can place a neatly formatted link, Markdown snippet, or custom text format on your clipboard.
If the bookmarklet does not work right away, check that the JavaScript code was saved correctly, the page allows clipboard access, and Edge is not blocking the action. After that, customize the output format to match how you share links in s, emails, documents, or publishing workflows.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




