I am trying to retreive data using document.getElementsByName but the function returns empty if my element is inside a nested HTML document. I am not sure if this is the reason but the fact is that right before the nested HTML the function works fine.
here is a simplification:
<html>
...
<iframe name="contentFrame"> // getElementsByName can find this element
<html>
...
<input name="ship_no"> // getElementsByName returns empty
...
</html>
...
</html>
I did some searching and couldn't find anything related. Can anyone think of a workaround for this problem?