1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[assert] document.documentURI

This commit is contained in:
Witold Filipczyk 2024-04-12 19:28:26 +02:00
parent 305664eaf9
commit 351aa1fce7

View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<body>
<p>Click the button to display the location of this document</p>
<p><strong>Note:</strong> Internet Explorer does not support the documentURI property.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.documentURI;
console.assert(x.endsWith('/test/ecmascript/assert/document.documentURI.html'), 'documentURI.html');
}
console.error('document.documentURI.html');
myFunction();
console.exit(0);
</script>
</body>
</html>