- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to write a script to access document properties using IE4 DOM method?
This IE4 document object model (DOM) introduced in Version 4 of Microsoft's Internet Explorer browser. IE 5 and later versions include support for most basic W3C DOM features.
Example
To access document properties using IE4 DOM method, try to run the following code −
<html> <head> <title> Document Title </title> <script> <!-- function myFunc() { var ret = document.all["heading"]; alert("Document Heading : " + ret.innerHTML ); var ret = document.all.tags("P");; alert("First Paragraph : " + ret[0].innerHTML); } //--> </script> </head> <body> <h1 id = "heading">This is main title</h1> <p>Click the following to see the result:</p> <form id="form1" name = "FirstForm"> <input type = "button" value = "Click Me" onclick = "myFunc();" /> <input type = "button" value = "Cancel"> </form> <form d = "form2" name = "SecondForm"> <input type="button" value="Don't ClickMe"/> </form> </body> </html>
- Related Articles
- How to access document properties using W3C DOM method?
- What are the document properties of IE4 DOM method?
- How can I access document properties using Legacy DOM method in JavaScript?
- How to get the list of document properties which can be accessed using W3C DOM?
- How to access cookies using document object in JavaScript?
- How to access image properties in OpenCV using Python?
- How to access JavaScript properties?
- What are the document properties which can be accessed using Legacy DOM?
- How to add and change document author (document properties) in Excel
- How can I write a script to use either W3C DOM or IE 4 DOM depending on their availability?
- How to add, access, delete, JavaScript object properties?
- How to delete document from a collection in MongoDB using deleteOne() method?
- HTML DOM write() Method
- How to change Pixel values using Direct Access Method in OpenCV?
- MongoDB - how can I access fields in a document?

Advertisements