title: Get iframe name with Vbscript
body: <p>How do I extract the iframe name with vbscript? like for example if my string value is</p>
  
  <pre><code>&lt;DIV style="MARGIN-TOP: 0px; WIDTH: 670px; HEIGHT: 210px; VISIBILITY: visible; MARGIN-LEFT: -335px; TOP: 48px" id=TB_window&gt;&lt;DIV id=TB_title&gt;  &lt;DIV id=TB_ajaxWindowTitle&gt;Add Media&lt;/DIV&gt;  &lt;DIV id=TB_closeAjaxWindow&gt;&lt;A id=TB_closeWindowButton title=Close href="#" jQuery172014112867239284427="140"&gt;&lt;IMG src="http://www.gorgeoushentai.com/wp-includes/js/thickbox/tb-close.png"&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;IFRAME style="WIDTH: 670px; HEIGHT: 180px" id=TB_iframeContent onload=tb_showIframe() src="http://www.gorgeoushentai.com/wp-admin/media-upload.php?post_id=168&amp;amp;" frameBorder=0 name=TB_iframeContent656 hspace=0&gt;This feature requires inline frames. You have iframes disabled or your browser does not support them.&lt;/IFRAME&gt;&lt;/DIV&gt;
  </code></pre>
  
  <p>Then the extracted value would be <strong>TB_iframeContent656</strong></p>
  
  <p>I attempted to write the code in vbscript but it doesn't work</p>
  
  <pre><code>&lt;script type="text/vbscript"&gt;
  box="&lt;DIV style=""MARGIN-TOP: 0px; WIDTH: 670px; HEIGHT: 210px; VISIBILITY: visible; MARGIN-LEFT: -335px; TOP: 48px"" id=TB_window&gt;&lt;DIV id=TB_title&gt;  &lt;DIV id=TB_ajaxWindowTitle&gt;Add Media&lt;/DIV&gt;  &lt;DIV id=TB_closeAjaxWindow&gt;&lt;A id=TB_closeWindowButton title=Close href=""#"" jQuery172014112867239284427=""140""&gt;&lt;IMG src=""http://www.gorgeoushentai.com/wp-includes/js/thickbox/tb-close.png""&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;IFRAME style=""WIDTH: 670px; HEIGHT: 180px"" id=TB_iframeContent onload=tb_showIframe() src=""http://www.gorgeoushentai.com/wp-admin/media-upload.php?post_id=168&amp;amp;"" frameBorder=0 name=TB_iframeContent656 hspace=0&gt;This feature requires inline frames. You have iframes disabled or your browser does not support them.&lt;/IFRAME&gt;&lt;/DIV&gt;"
  
  data = box.document.getElementById("TB_iframeContent").name
  document.write(data)
  &lt;/script&gt;
  </code></pre>