html - How to Access and set value to element inside Multi-Nested Frames -
<html><head> <title>content</title> </head> <frameset rows="68,*,20" border="0" frameborder="no" framespacing="0"> <frameset cols="0,0,*" frameborder="0" border="0">...</frameset> <frameset cols="170,*" frameborder="0" border="0"> <frame src="/html/main/menu.asp" name="menufrm" id="listfrm" frameborder="no" border="0" scrolling="auto" target="_self" marginwidth="0" marginheight="0" noresize="">...</frame> <frameset rows="70,*" border="0" frameborder="0" framespacing="0"> <frame src="/html/main/tab.asp" name="tabfrm" id="tabfrm" frameborder="no" border="0" scrolling="no" target="_self" marginwidth="0" marginheight="0" noresize="">...</frame> <frame src="" name="contentfrm" id="contentfrm" frameborder="0" border="0" scrolling="auto" target="_self" marginwidth="0" marginheight="16" noresize=""> #document <html> <head>...</head> <body onload="loadframe();" marginwidth="0" marginheight="16"> <form id="configform" action=""> <script>...</script> <table width="90%" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr>...</tr> <tr> <td id="security"> <table class="tabinfo"> <tbody> <tr width="100%" class="trtabconfigure" align="center">...</tr> <tr class="trtabconfigure" align="right">...</tr> <tr class="trtabconfigure" align="right" readonly="true" id="select_anon"> <td width="40%" align="right">...td> <td width="60%" align="left"> <input maxlength="252" type="text" align="left" name="anony_item" id="anony_item" style="width:150px"> </td> </tr>
i access , set value element id="anony_item"
using vbscript.
i tried following code giving me error:
set setnai = ie.document.getelementbyid("contentfrm").contentwindow.document.all("anony_item") setnai.value = "nai_value"
but above giving me error? please.
Comments
Post a Comment