Source code
Revision control
Copy as Markdown
Other Tools
<?xml version="1.0" encoding="utf-8"?>
<head>
<title>Link drag and drop: changing draggable attribute</title>
</head>
<body onload="document.querySelector('a').setAttribute('draggable','false')">
<p><a href="data:text/plain,1" ondragstart="document.querySelector('p').firstChild.nodeValue = 'FAIL'">Try to drag me</a></p>
<p>You should not be able to drag link above.</p>
</body>
</html>