How can I determine the value TEST from both of the scenarios below?
For the <P> tag I can use OMON_3.innerTex t, but with the <Input> tag I
need to use OMON_3.value. However, in my application depending on how
the page is viewed, either the <P> tag will be displayed or <Input>.
Is there a way to find the value in both cases with the same piece of
code?
<P id="OMON_3">TES T</P>
<INPUT style="width:13 5px" maxlength="15" name="OMON_3" tabindex="4"
value="TEST" />
For the <P> tag I can use OMON_3.innerTex t, but with the <Input> tag I
need to use OMON_3.value. However, in my application depending on how
the page is viewed, either the <P> tag will be displayed or <Input>.
Is there a way to find the value in both cases with the same piece of
code?
<P id="OMON_3">TES T</P>
<INPUT style="width:13 5px" maxlength="15" name="OMON_3" tabindex="4"
value="TEST" />
Comment