I have a local script (stored in C:\Windows\Web\CopyTitleAndUrl_htm) that allows me to copy the title and URL of the current web page via a context menu entry (defined in the registry). The script worked fine in previous version, but throws an error in IE9 RC.
The script is:
Title_URL right-click context tool for IE4+
Bill James - firstname.lastname@example.org - rev 2 Nov 2000
<form name=a><textarea name=a1></textarea>
//To disable popup confirmation, change "showConfirm=1" to "showConfirm=0"
kludge - to keep newlines we must set text in
textarea, then create textRange and copy that.
if(showConfirm)(oExtArgs.alert(oTarget.value+'\r\nCopied to Clipboard'));
The error is:
An error has occurred in the script on htis page
Error: Unspecified error.
Any ideas on what is causing the error and how to fix it?
- Moved by Yi Feng Li Monday, March 07, 2011 6:44 AM ie script issue (From:Internet Explorer Extension Development)
This forum is for IE addins, e.g. BHO, Band objects. Since your question about script, I'm moving this thread to IE Web Developing forum for better support.
Yi Feng Li [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
I recommend you post this issue to our Connect feedback portal. Our developer will evaluate them seriously and take them into consideration.
Improving the quality of our products and services is a never ending process for Microsoft.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact email@example.com
Microsoft One Code Framework
I have a local script (stored in C:\Windows\Web\CopyTitleAndUrl_htm) that allows me to copy the title and URL of the current web page
Neat. If nothing else you can use this much of it in the Address bar:
I don't know why the CRLF doesn't work for output. But it would be easy enough to just bang in an Enter instead after you Copy and Paste that much. ; )
Thanks for the tip!
With EXTREME thanks to Ramesh Srinivasan
Who posted up...
Changing the following line:
Makes it work in IE9/IE8 (and probably in earlier versions as well).
Credits to Socrates (Soc) Trikes, IE MVP