S
Steve Richter
I am using the window.clipboardData.getData javascript method to copy
from the clipboard.
<SCRIPT LANGUAGE="JavaScript">
function ShowClipBoard()
{
var data = window.clipboardData.getData("text") ;
alert( data ) ;
}
</SCRIPT>
This works, but I am not prompted by the browser first, asking if I
want to allow access to the clipboard.
When I click "copy code" from an MSDN web page I first am prompted by
a browser message box asking if I want to allow access to the
clipboard.
http://msdn2.microsoft.com/en-us/library/ms533044.aspx
What method would the MSDN page be using to access the clipboard that
would cause the "allow access" prompt?
Is it just that I am running my test page from localhost? I want to
make sure I am using the most standards compliant method to copy to
and from the clipboard.
thanks,
-Steve
from the clipboard.
<SCRIPT LANGUAGE="JavaScript">
function ShowClipBoard()
{
var data = window.clipboardData.getData("text") ;
alert( data ) ;
}
</SCRIPT>
This works, but I am not prompted by the browser first, asking if I
want to allow access to the clipboard.
When I click "copy code" from an MSDN web page I first am prompted by
a browser message box asking if I want to allow access to the
clipboard.
http://msdn2.microsoft.com/en-us/library/ms533044.aspx
What method would the MSDN page be using to access the clipboard that
would cause the "allow access" prompt?
Is it just that I am running my test page from localhost? I want to
make sure I am using the most standards compliant method to copy to
and from the clipboard.
thanks,
-Steve