HTML DOM id Property
Complete Base Object Reference
Definition and Usage
The id property sets or returns the id of the <base> element.
Syntax
Example
The following example returns the base id:
<html>
<head>
<base id="myBaseId" href="http://www.w3schools.com/htmldom/" />
</head>
<body>
<p>Base id:
<script type="text/javascript">
x=document.getElementsByTagName('base')[0];
document.write(x.id);
</script>
</body>
</html>
|
Output:
Try-It-Yourself Demos
Get the base
id of an HTML document
Complete Base Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|