mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[assert] document.documentURI
This commit is contained in:
parent
305664eaf9
commit
351aa1fce7
19
test/ecmascript/assert/document.documentURI.html
Normal file
19
test/ecmascript/assert/document.documentURI.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user