FancyPrairie
Programmer
I assumed that the the SET statement created a reference to an object rather than a copy of it. But I'm getting weird results from the following code.
What's weird is the document.getElementById("MyListBox").outerHTML contains the new value I assigned in the code (i.e. oSelect.outerHTML = "SELECT..."). However, oSelect.outerHTML does not contain the new value I assigned in the code (i.e. "SELECT..."). Rather it still contains the old value.
Is this expected behavior or am I missing something?
Code:
Dim oSelect
Function abc()
Set oSelect = document.getElementById("MyListBox")
oSelect.outerHTML = "SELECT..."
End Function
Is this expected behavior or am I missing something?