The method
document.getElementById is frequently used to get an element with a certain id. Prior to Messaging and Security Feature Pack (AKU2 - see
ListOfAkus), this method was not available. There are other ways to get an element by id, however.
If you are targeting a Windows Mobile release prior to that, you can use a very simple work around.
If an element has an id attribute, it is accessible via script through an object named with the id of the element. For example:
<div id="mydiv">Some text in a div</div>
<script>
mydiv.innerText = "Some replaced text in a div";
</script>
The div element is accessible in this manner once the end of the div tag has been parsed.