Copy Text to the Clipboard

Sample HTML script for copying text found in a text area named BasicTextArea to the clipboard.

VBScript Code


Sub RunScript
    strCopy = BasicTextArea.Value
    document.parentwindow.clipboardData.SetData "text", strCopy
End Sub