-
Notifications
You must be signed in to change notification settings - Fork 57
$.copy()
Arthur Guiot edited this page Aug 23, 2017
·
1 revision
This function is simply made to help you copy something to the clipboard (without having the user pressing Ctrl+C
on Windows and ⌘C
Simply input a String
in this function and it will automatically copied to the clipboard, if the Browser supports it.
If it doesn't, DisplayJS will show up a window.prompt
that will ask the user to select the text and press Ctrl+C
.
$.then(function {
$.copy("DisplayJS is the best JavaScript framework ever!");
}, function {
alert("Text copied!")
});
- Home
- The Core Languages
- Getting Started: Installation
- The Basics (
$.var()
+$.target()
) - Developing for DisplayJS
-
$.select()
- Text related
- If...else
$.xss()
$.repeat()
$.custom()
$.live()
$.load()
$.on()
$.onEvent()
$.ready()
- Scroll API
$.all()
$.clone()
$.is()
$.valEmpty()
$.remove()
$.show()
&$.hide()
$.ajax()
- Class Related
$.css()
$.getStyle()
- Fade effects
$.extend()
$.dynamic()
$.parent()
- Elements-Nodes
$.component()
$.time_ago()
$.copy()
$.then()
$.sleep()
$.getProp()