Tile url helper tool doesn't work in IE9
-
Saturday, March 19, 2011 7:56 PM
I use this titleurl file and it doesn't work in IE9
The htm has this:
The registry key adds a value in the right mouse click context menu to call this html file and then it copies the title and url of a page into your clip board. On IE9 it fails with
An error has occurred in the script on this page
Line 17
Char 3
Error Permission denied
Code 0
url: file:///c:/windows/web/TITLE_URL.HTM
What do I need to do to get this to work?
<!--
Title_URL right-click context tool for IE4+
Bill James - bill@billsway.com - rev 2 Nov 2000
-->
<form name=a><textarea name=a1></textarea>
<SCRIPT language=javascript defer>
//To disable popup confirmation, change "showConfirm=1" to "showConfirm=0"
var showConfirm=0
var oExtArgs=external.menuArguments;
var sTitle=oExtArgs.document.title;
if(sTitle=='')(sTitle='No Title');
/*
kludge - to keep newlines we must set text in
textarea, then create textRange and copy that.
*/
var oTarget=document.a.a1;
oTarget.value=sTitle+': \r\n'+oExtArgs.location.href+'\r\n';
oTarget.select();
var oTextRange=oTarget.createTextRange();
oTextRange.execCommand('copy');
</SCRIPT>
All Replies
-
Tuesday, March 22, 2011 9:59 AMModerator
Hi,
Due to this is an Internet Explorer script issue, in order to get better support on web development including HTML, CSS and Script for Internet Explorer, it is still recommended to post to Internet Explorer Web Development Forum:
Internet Explorer Web Development Forum
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thank you for your understanding.
Alex Zhao
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Wednesday, March 23, 2011 1:18 AMYou do realize it was posted over there already during the RC with no resolution. :-)
-
Friday, April 01, 2011 1:18 AM
With EXTREME thanks to Ramesh Srinivasan
Who posted up...
Changing the following line:
oTarget.value=sTitle+': \r\n'+oExtArgs.location.href+'\r\n';
to
oTarget.value=sTitle+': \r\n'+oExtArgs.document.URL+'\r\n';
Makes it work in IE9/IE8 (and probably in earlier versions as well).
Credits to Socrates (Soc) Trikes, IE MVP

