473,394 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Problem with document.execCommand()

SAL
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/de...xeccommand.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");
}
}
Feb 21 '06 #1
0 1485

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jean-Luc ERNST | last post by:
Hello, I apologize for my english, I'm french speaking... Could someone help me to finalize a little project? I'm writing a form for my site but I'don't know many in Javascript (I'm a newbee). ...
2
by: len smith | last post by:
I'm having problems using the DHTML control's ExecCommand() in C#. Here are the parameters ExecCommand takes: > object.ExecCommand cmdID Intellisense tells me I want to us a "ByRef pInVar as...
1
by: David | last post by:
how can I force the "document.execCommand("Refresh");" command to refresh page only one time?
4
by: pbreah | last post by:
I'm doing a Rich Text Editor (WYSIWYG) in javascript for a game for kids. I'm doing a special case in with every keystroke from A-Z creates a background and foreground color for that letter, witch...
12
by: syedfasih | last post by:
I have created a text area using IFRAME. The problem is that it is working only in Internet Explorer not in Mozilla Firefox. Please help me regarding this problem. IS there any special command or tag...
23
by: abdalimohd | last post by:
hi all, i m developing an html editor for my web page since i cannot trace out the enter key press for the available html editors for asp.net app. now i have done everything that i need with this...
6
by: mrobinson86 | last post by:
Hey guys, wondered if anybody could help me out with a pretty simple piece of code that has been driving me crazy for the past few days? I am trying to create a client side self sustaining message...
1
by: venkat2hyd | last post by:
Hi All, Iam having a issue :( relating to SaveAs Window. Iam using the method execCommand for creating SaveAs Window the code which iam using in script is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.