Avoids HTTP 403 on login and reset/change password, seehttps://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ref-contrib-csrf.
if (window.clipboardData) {
c = window.clipboardData.getData("Text");
if (c) {
document.write("<p>The contents of your clipboard:</p>");
document.write("<blockquote>" + c + "</blockquote>");
}
}