Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- </head>
- <body>
- <svg width="100" height="100">
- <g id="hotspot.0" onmouseover="ShowHotSpot(evt,'0')" onmouseout="HideHotSpot(evt,'0')" onmousemove="ShowToolTip(evt,'0','SAM8834P00009 HOOP')" onclick="myFunction('SAM8834P00009 HOOP')" opacity="1">
- <rect x="0" y="0" width="13.5232" height="11.9322" style="fill:#00ff00;fill-rule:evenodd;"/>
- </g>
- </svg>
- <script>
- function myFunction(value) {
- /* Get the text field */
- console.log(value);
- var dummy = document.createElement("textarea");
- document.body.appendChild(dummy);
- dummy.value = value;
- dummy.select();
- document.execCommand("copy");
- document.body.removeChild(dummy);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment