Here is a nice Internet Explorer extension which copies the Page Title and URL of the current Web page to the Clipboard. It adds a Copy Title and URL command to the context menu in Internet Explorer. The script from billsway.com was originally written for Internet Explorer 4, but works flawlessly in all versions of Internet Explorer and in Windows Vista as well.

Download Title_URL.zip from Billsway.com and save it to the Desktop. Unzip the archive and extract the contents to a folder. Move the file Title_URL.htm to the C:\Windows\Web directory.

Note for Internet Explorer 9 Users: If Internet Explorer 9 is installed, the script throws the error message "An error has occurred in the script on this page". In order for the script to work in Internet Explorer 9 (and all other earlier versions), you’ll need to edit the script file Title_URL.htm

Open Title_URL.htm file using Notepad, and change the following code:

oTarget.value=sTitle+’: \r\n’+oExtArgs.location.href+’\r\n’;

to

oTarget.value=sTitle+’: \r\n’+oExtArgs.document.URL+’\r\n’;

Save the file, and move it to the C:\Windows\Web directory.

Credits to Socrates (Soc) Trikes, IE MVP for the above tip.

Then, right-click Title_URL.reg and choose Merge. This adds a context menu item Copy Title and URL in Internet Explorer.

To copy the Title and the URL of the current Webpage, simply right-click somewhere on the Webpage, and click Copy Title and URL. The Title and URL are copied to the Clipboard, in the following format:

About – The Winhelponline Blog:
http://www.winhelponline.com/blog/about/

You’ll also see a confirmation message as below:

You can turn off the confirmation message by editing the file Title_URL.htm located in the C:\Windows\Web folder using Notepad. You just need to change the following code (in line #8):

var showConfirm=1

to

var showConfirm=0

Note: The Web folder path is hard-coded for C:\Windows\Web in the REG file. If Windows is installed in a different location in your system, you need to edit the REG file using Notepad and update the drive-letter accordingly.

Editor’s Note: I’m using this extension for a long time now, and it’s far more convenient for me to access the command from the Internet Explorer Toolbar. Here is how to add this extension to the Internet Explorer Toolbar.

ADDING COPY TITLE AND URL TO THE TOOLBAR

1. Download titleurl_button.reg and save to Desktop.

2. Right-click titleurl_button.reg and choose Merge.

3. Click Yes when asked for confirmation.

If the Copy Title and URL button (with a globe icon) does not automatically appear in the Toolbar, you need to customize the Toolbar in order to display the button. Here are the instructions:

For Internet Explorer 7

(REF Windows Internet Explorer 7 Toolbar: It’s Your Option)

Right-click the Command bar, point to Customize Command Bar, and then click Add or Remove Commands. Click the button you want to add in the Available toolbar buttons list, and then click Add. When you’re done, click Close.

For Internet Explorer 6

Open Internet Explorer. From the View menu, click Toolbars, and click Customize. (REF IE6: Customize Your Web Browsing Layout)

Billsway.com has other useful scripts that you may want to check out. Visit VBScript Tools by Bill James page for more information.


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

3 Comments

  1. LiChen
    said this on Sunday, April 13th 2014 8:15 am

    Can it be done on Surface RT (Win 8.1/IE 11)?

  2. Johan
    said this on Wednesday, June 13th 2012 6:38 pm

    Hello I had the same error it are the ‘ signs, delete it and rewrite it with the one of your keyboard.

  3. Sword
    said this on Monday, October 17th 2011 10:20 pm

    I have IE 9, I followed the steps mentioned and I am getting the following error:

    An error has occured in the script on this page:

    Line: 17
    Char: 26
    error: Invalid Character
    Code: 0

    this is the line in case you need to review:

    oTarget.value=sTitle+ā€™: \r\nā€™+oExtArgs.document.URL+ā€™\r\nā€™;

Leave a Reply