G
Guest
Below is my javaScript function that I am having trouble with. When I set
the bUserInterface parameter to FALSE in the follow statement,
"document.execCommand("CreateLink","false", oSource)", the dialog window
should NOT come up because I have supplied the URL for it from my oSource
parameter I past to my function.
Can anyone tell me why it's not working?
I found this example here:
(http://msdn.microsoft.com/library/d...uthor/dhtml/reference/methods/execcommand.asp)
/// Copy Source to Clipboard
function copytoClipBoard(oSource)
{
//if(window.clipboardData)
// window.clipboardData.setData("URL",oSource);
if (!oSource=="")
{
//Create link
document.execCommand("CreateLink","false",oSource);
document.execCommand("copy");
}
}
the bUserInterface parameter to FALSE in the follow statement,
"document.execCommand("CreateLink","false", oSource)", the dialog window
should NOT come up because I have supplied the URL for it from my oSource
parameter I past to my function.
Can anyone tell me why it's not working?
I found this example here:
(http://msdn.microsoft.com/library/d...uthor/dhtml/reference/methods/execcommand.asp)
/// Copy Source to Clipboard
function copytoClipBoard(oSource)
{
//if(window.clipboardData)
// window.clipboardData.setData("URL",oSource);
if (!oSource=="")
{
//Create link
document.execCommand("CreateLink","false",oSource);
document.execCommand("copy");
}
}