Skip to content
Permalink
Browse files

Remove innerHTML from test page

  • Loading branch information
englehardt committed Oct 16, 2019
1 parent cdc286d commit e3de522b3c1920fae2ecc3f3fb3421e73d17564d
Showing with 4 additions and 3 deletions.
  1. +4 −3 get_referrer.html
@@ -3,10 +3,11 @@
</head>
<body>
<p>The referrer accessible via `document.referrer` is:</p>
<pre id='referrer-result'></pre>
<div id='referrer-result'></div>
<script>
var pre = document.getElementById('referrer-result');
pre.innerHTML = document.referrer;
var div = document.getElementById('referrer-result');
var text = document.createTextNode(document.referrer);
div.appendChild(text);
</script>
</body>
</html>

0 comments on commit e3de522

Please sign in to comment.
You can’t perform that action at this time.