Sets or retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
Sets or retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
This example uses the setData and getData methods with the clipboardData object to perform a cut-and-paste operation through the shortcut menu.
<HEAD>
<SCRIPT>
var sSave = "";
function fnBeforeCut() {
event.returnValue = false;
}
function fnCut() {
event.returnValue = false;
sSave = oSource.innerText;
oSource.innerText = "";
}
function fnBeforePaste() {
event.returnValue = false;
}
function fnPaste() {
event.returnValue = false;
oTarget.innerText = sSave;
}
</SCRIPT>
</HEAD>
<BODY>
<SPAN ID="oSource" onbeforecut="fnBeforeCut()"
oncut="fnCut()">Select and Cut this Text
</SPAN>
<BR>
<BR>
<DIV ID="oTarget" onbeforepaste="fnBeforePaste()"
onpaste="fnPaste()">Paste the Text Here
</DIV>
</BODY>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.
Standards Information
There is no public standard that applies to this event.