Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Template:Menu
(view source)
Revision as of 08:35, 10 September 2019
166 bytes removed
,
5 years ago
no edit summary
Line 1:
Line 1:
−
−
<!-- The text field -->
−
<input type="text" value="Hello World" id="myInput">
−
<!-- The button used to copy the text -->
<!-- The button used to copy the text -->
−
<button onclick="myFunction()">Copy text</button>
+
<button onclick="myFunction()">Copy
to clipboard the
text
to send
</button>
function myFunction() {
function myFunction() {
/* Get the text field */
/* Get the text field */
−
var copyText =
document.getElementById(
"
myInput
"
)
;
+
var copyText = "
{{access|{{{qID}}}}}}}
";
/* Select the text field */
/* Select the text field */
Line 17:
Line 13:
/* Copy the text inside the text field */
/* Copy the text inside the text field */
document.execCommand("copy");
document.execCommand("copy");
−
−
/* Alert the copied text */
−
alert("Copied the text: " + copyText.value);
}
}
<a href="{{MailtoAccess|{{{qID}}}}}"> Do a GDPR SAR to this controller!</a>
<a href="{{MailtoAccess|{{{qID}}}}}"> Do a GDPR SAR to this controller!</a>
−
−
{{access|{{{qID}}}}}}}
Podehaye
Bureaucrats
, editors,
Interface administrators
,
Ninjas
, nuke,
Administrators
,
Widget editors
15,627
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Template
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
New Item
New Property
All items
All properties
All pages
Active Users
SAR service dev
Query Service
Maintenance
Administrator
Tools
Special pages
Printable version
Interaction
Community portal
WebXray
Recent changes
Contact Page
Telegram
Discourse forum
MyData Slack