Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract iframe name

Status
Not open for further replies.

Ruriko

Programmer
Aug 17, 2012
7
How do I extract the iframe name with vbscript? for example if the string value is
Code:
<DIV style="MARGIN-TOP: 0px; WIDTH: 670px; HEIGHT: 210px; VISIBILITY: visible; MARGIN-LEFT: -335px; TOP: 48px" id=TB_window><DIV id=TB_title>  <DIV id=TB_ajaxWindowTitle>Add Media</DIV>  <DIV id=TB_closeAjaxWindow><A id=TB_closeWindowButton title=Close href="#" jQuery172014112867239284427="140"><IMG src="[URL unfurl="true"]http://www.gorgeoushentai.com/wp-includes/js/thickbox/tb-close.png"></A></DIV></DIV><IFRAME[/URL] style="WIDTH: 670px; HEIGHT: 180px" id=TB_iframeContent onload=tb_showIframe() src="[URL unfurl="true"]http://www.gorgeoushentai.com/wp-admin/media-upload.php?post_id=168&amp;"[/URL] frameBorder=0 name=TB_iframeContent656 hspace=0>This feature requires inline frames. You have iframes disabled or your browser does not support them.</IFRAME></DIV>

Then the extracted value would be TB_iframeContent656
 
vbscript will ONLY work if the browser is Internet Explorer.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
I would recommend using jQuery; only a couple lines of code and cross-browser support.

-Geates
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top