title: Iframe can't display HTML while a browser can
body: <p>I am having hard time to make my Iframe display my html string which happens to be :</p>
  
  <pre><code>var='&lt;BODY style="MARGIN: 0px" bgColor=#ffffff marginwidth="0" marginheight="0"&gt;
  &lt;SCRIPT language=JavaScript&gt;
  var Caller_User_Type = 'ESS';
  var Locale_Date_Order = '2';
  var User_Browser_Type = '';
  var Page_ID = '266';
  &lt;/SCRIPT&gt;
  
  &lt;SCRIPT language=javascript&gt;
  var wlocationxx = '';
  wlocationxx = String(window.location);
  if (wlocationxx.substring(0,7) == 'http://'){
      window.location = 'https://' + wlocationxx.substring(7)
  }
  &lt;/SCRIPT&gt;
  
  &lt;SCRIPT language=JavaScript type=text/javascript src="../../../System/CONFIG/Common_Functions.js"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT language=JavaScript type=text/javascript src="../../../scripts/modeling_script.js"&gt;&lt;/SCRIPT&gt;
  
  &lt;TABLE id=PageStart_1 border=0 cellSpacing=0 cellPadding=0 width="100%" height="100%"&gt;
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD height="100%" vAlign=top&gt;
  &lt;TABLE id=PageStart_2 border=0 cellSpacing=0 cellPadding=0 width="100%" height="100%" valign="top"&gt;
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD height="1%" width="100%"&gt;
  &lt;SCRIPT language=javascript src="../../../System/EXB/EXB_Includes/logout.js"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT language=javaScript src="../../../System/EXB/EXB_Includes/EXB_cookie_factory.js"&gt;&lt;/SCRIPT&gt;
  
  &lt;TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"&gt;
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD&gt;
  &lt;TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" bgColor=#000063&gt;
  &lt;TBODY&gt;
  &lt;TR bgColor=#000066&gt;
  &lt;TD bgColor=#000066 height=60 vAlign=center colSpan=2&gt;&lt;IMG src="../../../System/EXB/EXB_Images/exb_login/mckinseyLogo.gif" width=212 height=23&gt; &lt;/TD&gt;
  &lt;TD bgColor=#000066 vAlign=center align=right&gt;&lt;FONT color=white size=2 face="Arial Rounded MT Bold"&gt;myaccount.mckinsey.com&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD&gt;&lt;IMG src="../../../System/EXB/EXB_Images/mck_racing_stripe.gif" width=309 height=3&gt;&lt;/TD&gt;
  &lt;TD width="100%"&gt;&lt;IMG src="../../../System/EXB/EXB_Images/mck_racing_stripe.gif" width="100%" height=3&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;!-- begin exb_global.asp --&gt;&lt;!-- end exb_global.asp --&gt;
  &lt;SCRIPT type=text/javascript src="../../../System/EXB/EXB_Includes/Menu/HM_Config_Common.js"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT language=JavaScript type=text/javascript src="../../../System/EXB/EXB_Includes/Menu/HM_mnu_functions.js"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT language=JavaScript type=text/javascript src="../../../System/EXB/EXB_Includes/Menu/HM_dummy_functions.js"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT type=text/javascript&gt;var sHMConfigContent = "SetUpdateDefaults('300375');HM_TopLevelMenuId=\"hmExbDCPart\";nMenuItems=0;sHM_f_SetItems=\"\";sHM_f_SetItems=\"\";sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart\",\"Home\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Home.asp\",true,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart\",\"Select Plan\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Part_Plan_Select.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart\",\"Account Menu\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Home.asp\",false,\"hmExbDCPart_AccountMenu\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart\",\"Withdrawals\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Distribution_Security.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart\",\"Annual Decisions\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Rebalance_Elections_View.asp\",false,\"hmExbDCPart_AnnualDecisions\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart\",\"Administration\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Personal_Profile.asp\",false,\"hmExbDCPart_Administration\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart\",\"Contact Us\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Contact_us.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart\",\"Log Off\",\"\",\"65\",\"24\",\"\",\"\",\"javascript:User_Log_Off()\",false,\"\");if(sHM_f_SetItems!=\"\"){var sTopMenuY=\"HM_f_GetElementXY('hm_m_dc_part_placer','y')+\";sTopMenuY+=\"(HM_f_GetElementXY('horizontal_ruler','y')-\";sTopMenuY+=\"(HM_f_GetElementXY('hm_m_dc_part_placer','y')+HM_f_GetMenuDimension(HM_TopLevelMenuId, false)))\";HM_f_SetMenus({TopMenuX:\"HM_window_right_edge-HM_f_GetMenuDimension(HM_TopLevelMenuId,true)-10\",TopMenuY:sTopMenuY,TopKeepInWindowX:0,TopKeepInWindowY:0,IsPermanent:1,IsHorizontal:1,PositionChild:\"below\",MilliSecondsVisible:0,CreateOnLoad:true,MenuID:HM_TopLevelMenuId});eval(\"HM_f_SetItems(\"+sHM_f_SetItems+\");\");HM_f_SetMenuTemplate({SeparatorColor:\"white\",BorderColor:\"#000000\",    BGColorOver:\"#FF9900\",BGColor:\"#DB5500\",BorderWidth:1,FontColor:((cssStyleObj!=null)?cssStyleObj.color:\"#ffffff\"),FontColorOver:((cssStyleObj!=null)?cssStyleObj.color:\"#ffffff\"),FontColorSelected:((cssStyleObj!=null)?cssStyleObj.color:\"#ffffff\"),MoreImagesVisible:true,ImageSrc:HM_imgsrc+\"/HM_More_white_right.gif\",HM_OnVisibilityToggle:HM_fc_HideControls});sHM_f_SetItems=\"\";sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AccountMenu\",\"Balances\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Balances.asp?f=byfund-true&amp;f=byaccount-true&amp;f=webchart-true\",true,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AccountMenu\",\"Account Summary\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Account_Summary.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AccountMenu\",\"Beneficiaries\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Beneficiary.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AccountMenu\",\"Contributions With Growth\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Cost_Basis.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AccountMenu\",\"Instant Statement\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Instant_Statement.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AccountMenu\",\"Loans\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Loan_Inquiry.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AccountMenu\",\"Pending Requests\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Pending_Request.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AccountMenu\",\"Plan Information and Forms\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Request_Documents.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AccountMenu\",\"Roth Conversion/Rollover\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_IPRC_Security.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AccountMenu\",\"Statement\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Individual_Statements.asp\",false,\"\");if(sHM_f_SetItems!=\"\"){HM_f_SetMenus({MenuID:\"hmExbDCPart_AccountMenu\"});eval(\"HM_f_SetItems(\"+ sHM_f_SetItems+\");\");}sHM_f_SetItems=\"\";sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AnnualDecisions\",\"Asset Allocation\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Rebalance_Elections_View.asp\",true,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AnnualDecisions\",\"Exchange Rates\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Exchange_Rate_Inquiry.asp\",false,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_AnnualDecisions\",\"Historical Performance\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Historical_Investment_Performance.asp\",false,\"\");if(sHM_f_SetItems!=\"\"){HM_f_SetMenus({MenuID:\"hmExbDCPart_AnnualDecisions\"});eval(\"HM_f_SetItems(\"+ sHM_f_SetItems+\");\");}sHM_f_SetItems=\"\";sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_Administration\",\"Personal Profile\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Personal_Profile.asp\",true,\"\");sHM_f_SetItems+=GetMenuItemString(\"hmExbDCPart_Administration\",\"Password Changes\",\"\",\"65\",\"24\",\"\",\"\",\"EXB_RSQ_Pin_Change.asp\",false,\"\");if(sHM_f_SetItems!=\"\"){HM_f_SetMenus({MenuID:\"hmExbDCPart_Administration\"});eval(\"HM_f_SetItems(\"+ sHM_f_SetItems+\");\");}}";if(window.event + "" == "undefined") event = null;function HM_f_PopUp(){return false};function HM_f_PopDown(){return false};HM_ConfigFiles="HM_Config_Menu.js";&lt;/SCRIPT&gt;
  &lt;!--EXB_DC_Infobar.asp--&gt;
  &lt;TABLE id=Table1 border=0 cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;!--begin infobar table--&gt;
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD bgColor=#db5500 width="100%"&gt;&lt;IMG id=hm_m_dc_part_placer alt="" src="../../../System/EXB/EXB_Images/t.gif" width=1 height=21&gt; &lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD colSpan=14&gt;&lt;IMG id=horizontal_ruler src="../../../System/EXB/EXB_Images/horizontal_rule.gif" width="100%" height=3&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;!-- end of infobar --&gt;
  &lt;SCRIPT language=JavaScript1.2 type=text/javascript src="../../../System/EXB/EXB_Includes/Menu/HM_Loader.js"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT type=text/javascript src="../../../../System/EXB/EXB_Includes/Menu/HM_ScriptDOM.js"&gt;
  &lt;/SCRIPT&gt;
  
  &lt;SCRIPT type=text/javascript src="../../../../System/EXB/EXB_Includes/Menu/HM_Config_Menu.js"&gt;
  &lt;/SCRIPT&gt;
  &lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD height="100%" vAlign=top width="100%"&gt;
  &lt;TABLE id=PageStart_5 border=0 cellSpacing=0 cellPadding=0 height="100%" valign="top"&gt;
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD height="100%" vAlign=top&gt;
  &lt;TABLE id=PageStart_6 border=0 cellSpacing=0 cellPadding=0 width="100%" height="100%" valign="top"&gt;
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD class=Body_Title9pt height="100%" vAlign=top&gt;&lt;!-- begin exb_global.asp --&gt;&lt;!-- end exb_global.asp --&gt;
  &lt;SCRIPT language=javaScript type=text/javascript&gt;
      &lt;!-- Begin
          var contentEcomp = "";
          var contentInfoLinx = "";
  
          function winOpen(url)
          {
              if (url.substr(11, 5) == "ecomp")
              {
                  contentEcomp = window.open(url,"contentEcomp","resizable=yes,toolbar=yes,location=yes,width=800," +
                                              "height=500,directories=no,status=no,scroll=yes,scrollbars=yes,menubar=yes,left=200,top=100");
                  contentEcomp.focus();                                       
              }
              if (url.substr(7, 5) == "infol")
                  alert('To log in, use the following (case sensitive) credentials - Username: Consulting2005, Password: clientinfolinx')  ;
              {
                  contentInfoLinx = window.open(url,"contentInfoLinx","resizable=yes,toolbar=yes,location=yes,width=800," +
                                  "height=500,directories=no,status=no,scroll=yes,scrollbars=yes,menubar=yes,left=200,top=100"); 
                  contentInfoLinx.focus();
              }
          }
      //--&gt;   
      &lt;/SCRIPT&gt;
  
  &lt;TABLE border=0 cellSpacing=0 cellPadding=3 width="100%" height="100%" valign="top"&gt;
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD&gt;&amp;nbsp; &lt;/TD&gt;
  &lt;TD rowSpan=20&gt;&lt;IMG src="../../../system/exb/exb_images/vert_black_bar.gif" width=1 height="100%"&gt; &lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD class=Body_Title8pt&gt;&lt;B&gt;Welcome&lt;/B&gt;&lt;BR&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD class=Body_Value9pt&gt;Rahul Raina&lt;BR&gt;&lt;BR&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD class=Body_Title8pt&gt;&lt;B&gt;Plan Sponsor:&lt;/B&gt;&lt;BR&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD class=Body_Value8pt&gt;McKinsey &amp;amp; Company&lt;BR&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD class=Body_Title8pt&gt;&lt;B&gt;Plan Name:&lt;/B&gt;&lt;BR&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD class=Body_Value8pt&gt;Retirement Program (Profit-Sharing Retirement Plan (PSRP) and Money Purchase Pension Plan (MPPP), where applicable)&lt;BR&gt;&lt;BR&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD height="100%"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;IMG border=0 src="images/clear_px.gif" width=160 height=1&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;
  &lt;TD class=Body_Title9pt height="100%"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
  &lt;TD height="100%" vAlign=top width="100%"&gt;&lt;!-- begin exb_global.asp --&gt;&lt;!-- end exb_global.asp --&gt;
  &lt;FORM id=frmHome method=post name=frmHome&gt;&lt;INPUT id=postAction type=hidden name=postAction&gt; &lt;BR&gt;
  &lt;TABLE id=Table1 border=0 cellSpacing=0 cellPadding=0 width="100%" valign="top"&gt;
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD class=Body_Value16pt&gt;Home&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD class=Body_Value9pt&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;!-- 0011 S, 0013, 0014 --&gt;&lt;!--&lt;tr&gt;
              &lt;td class="Body_Value9pt"&gt;Submit your annual Asset Allocation form between September 15 and October 6, 2008. &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td class="Body_Value9pt"&gt;&amp;nbsp;&lt;/td&gt;
          &lt;/tr&gt; --&gt;&lt;!-- 0011 E --&gt;&lt;!-- 0009 S --&gt;&lt;!-- &lt;tr&gt;
              &lt;td class="Body_Value10pt"&gt;
                  &lt;a href="EXB_RSQ_Rebalance_Elections_View.asp"&gt;
                  &lt;font color="#db5500"&gt;&lt;b&gt;Click here to complete your Asset Allocation form&lt;/b&gt;&lt;/font&gt;&lt;/a&gt;
              &lt;/td&gt;
          &lt;/tr&gt; --&gt;&lt;!-- 0009 E--&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR&gt;&lt;INPUT id=sMassAnouncementXML value='&lt;?xml version="1.0"?&gt;&lt;anouncement_text&gt;&lt;rows&gt;0&lt;/rows&gt;&lt;/anouncement_text&gt;' type=hidden name=sMassAnouncementXML&gt; &lt;INPUT id=isMessageViewed value=True type=hidden name=isMessageViewed&gt; &lt;INPUT id=sSubGroup value=D218354ECFF824224F45F173EC46FFED type=hidden name=sSubGroup&gt; 
  &lt;TABLE id=Table3 border=1 rules=none cellSpacing=0 cellPadding=0 width="80%"&gt;
  &lt;TBODY&gt;
  &lt;TR class=Table_Header&gt;
  &lt;TD width=5&gt;&lt;/TD&gt;
  &lt;TD&gt;&lt;B&gt;Special Message from McKinsey &amp;amp; Company&lt;/B&gt;&lt;/TD&gt;
  &lt;TD width=10&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD height=8 colSpan=3&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR class=Body_Value8pt&gt;
  &lt;TD width=5&gt;&lt;/TD&gt;
  &lt;TD&gt;&lt;B&gt;Do we have your current e-mail address?&lt;/B&gt;&lt;BR&gt;To confirm or update your e-mail address, go to Administration Menu&amp;gt;Personal Profile. 
  &lt;P&gt;&lt;/P&gt;&lt;B&gt;The 2013 Annual Decisions Period is over.&lt;/B&gt;&lt;BR&gt;Your next opportunity to change your allocation will be in the fall of 2014. 
  &lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;!-- 0026: removed &lt;b&gt; tags --&gt;
  &lt;TD width=10&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD height=8 colSpan=3&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR class=Table_Header&gt;
  &lt;TD width=5&gt;&lt;/TD&gt;
  &lt;TD&gt;&lt;B&gt;Participant Information&lt;/B&gt;&lt;/TD&gt;
  &lt;TD width=10&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD height=8 colSpan=3&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR class=Body_Value8pt&gt;
  &lt;TD&gt;&lt;/TD&gt;
  &lt;TD&gt;Rahul Raina&lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR class=Body_Value8pt&gt;
  &lt;TD&gt;&lt;/TD&gt;
  &lt;TD&gt;Bangalore&lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR class=Body_Value8pt&gt;
  &lt;TD&gt;&lt;/TD&gt;
  &lt;TD&gt;Karanataka,&lt;SPACE&gt; &lt;SPACE&gt;&lt;SPACE&gt;560001&lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR class=Body_Value8pt height=20 vAlign=bottom&gt;
  &lt;TD&gt;&lt;/TD&gt;
  &lt;TD&gt;Email Address: &lt;B&gt;mail@raina7.com&lt;/B&gt; &lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR class=Body_Value8pt height=20 vAlign=bottom&gt;
  &lt;TD&gt;&lt;/TD&gt;
  &lt;TD&gt;Plan Status: Term &amp;amp; Awaiting Payment&lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR height=5&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD height=8 colSpan=3&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR class=Table_Header&gt;
  &lt;TD width=5&gt;&lt;/TD&gt;
  &lt;TD&gt;&lt;B&gt;Balance Information&lt;/B&gt;&lt;/TD&gt;
  &lt;TD width=10&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD height=8 colSpan=3&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR class=Body_Value8pt&gt;
  &lt;TD&gt;&lt;/TD&gt;
  &lt;TD height=20 vAlign=top&gt;Account balances are current as of October 31, 2013.&lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;
  &lt;TR&gt;
  &lt;TR class=Body_Value8pt&gt;
  &lt;TD&gt;&lt;/TD&gt;
  &lt;TD&gt;Value $98,390.82&lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR height=5&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD height=8 colSpan=3&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR&gt;&lt;BR&gt;
  &lt;P&gt;&lt;A href="EXB_RSQ_Instant_Statement.asp"&gt;&lt;FONT size=2 face="verdana, helvetica, arial"&gt;&lt;B&gt;Click here for an Instant Web Statement&lt;/B&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;BR&gt;&lt;/FORM&gt;
  &lt;SCRIPT language=Javascript&gt;
  
  //0023
      function fn_getReport(siteURL)
      {
          document.frmHome.postAction.value = "report";
          document.frmHome.submit();
      }
  
      function winOpen(siteURL)
      {
          window.open(siteURL, "","resizable=yes,toolbar=no,location=no,width=640," +
                                                              "height=480,directories=no,status=no,scroll=yes,scrollbars=yes,menubar=no,left=100,top=20");
      }
  
  //0005  -S
      function OpenAnouncement(PlanID,GroupID,PartID)
      {
  
          var url = "../../../System/Exb/Exb_Includes/RSQ_Mass_Anouncement.asp?read=" + 
                    document.getElementById("isMessageViewed").value + 
                    "&amp;groupid=" + GroupID +
                    "&amp;subgroupid=" + document.getElementById("sSubGroup").value ;
  
          if(document.getElementById("imgNew") != null)
          {
              document.getElementById("imgNew").style.display = "none";
          }   
  
          var popupwindow = "";
          popupwindow = window.open(url,"Mass_Announcement","resizable=yes,toolbar=no,location=no,width=500," +
                      "height=500,directories=no,status=no,scrollbars=yes,menubar=no,left=200,top=100");
          popupwindow.focus();
      }
  //0005  -E
  &lt;/SCRIPT&gt;
  &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD align=middle&gt;
  &lt;TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"&gt;
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD class=StatusBar2 height=20 width="50%"&gt;&lt;A href="javascript:winOpenCopyright_RSQ();"&gt;Copyright 2003 Aon Consulting&lt;/A&gt;&lt;/TD&gt;
  &lt;TD class=StatusBar2 height=20 width="50%" align=right&gt;&lt;A href="javascript:winOpenPrivacy_RSQ();"&gt;Security and Privacy Statement&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD class=StatusBar1 height=20 colSpan=2 align=middle&gt;&lt;A href="EXB_RSQ_Contact_Us.asp"&gt;Contact Us&lt;/A&gt; | &lt;A href="javascript:print();"&gt;Print Screen&lt;/A&gt; | &lt;A href="javascript:User_Log_Off();"&gt;Log Off&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;!--
  Start: 12/8/2013 10:46:06 AM
  End  : 12/8/2013 10:46:07 AM
  Host : 192.168.11.106
  --&gt;
  &lt;DIV style="Z-INDEX: 5000; BORDER-BOTTOM: transparent 0px solid; POSITION: absolute; BORDER-LEFT: transparent 0px solid; WIDTH: 686px; HEIGHT: 22px; VISIBILITY: visible; OVERFLOW: hidden; BORDER-TOP: transparent 0px solid; TOP: 66px; CURSOR: default; BORDER-RIGHT: transparent 0px solid; LEFT: 292px" id=hmExbDCPart title="" sp="null"&gt;
  &lt;DIV style="POSITION: absolute; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #db5500; FONT-STYLE: normal; PADDING-LEFT: 4px; WIDTH: 47px; PADDING-RIGHT: 4px; FONT-FAMILY: Verdana, Verdana, Tahoma; HEIGHT: 22px; VISIBILITY: inherit; FONT-SIZE: 9pt; OVERFLOW: hidden; TOP: 0px; CURSOR: hand; FONT-WEIGHT: bold; BORDER-RIGHT: #666666 1px solid; PADDING-TOP: 4px; LEFT: 0px" id=hmExbDCPart_I1 title="" hh="46"&gt;Home&lt;/DIV&gt;
  &lt;DIV style="POSITION: absolute; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #db5500; FONT-STYLE: normal; PADDING-LEFT: 4px; WIDTH: 83px; PADDING-RIGHT: 4px; FONT-FAMILY: Verdana, Verdana, Tahoma; HEIGHT: 22px; VISIBILITY: inherit; FONT-SIZE: 9pt; OVERFLOW: hidden; TOP: 0px; CURSOR: hand; FONT-WEIGHT: bold; BORDER-RIGHT: #666666 1px solid; PADDING-TOP: 4px; LEFT: 47px" id=hmExbDCPart_I2 title="" hh="82"&gt;Select Plan&lt;/DIV&gt;
  &lt;DIV style="POSITION: absolute; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #db5500; FONT-STYLE: normal; PADDING-LEFT: 4px; WIDTH: 100px; PADDING-RIGHT: 4px; FONT-FAMILY: Verdana, Verdana, Tahoma; HEIGHT: 22px; VISIBILITY: inherit; FONT-SIZE: 9pt; OVERFLOW: hidden; TOP: 0px; CURSOR: hand; FONT-WEIGHT: bold; BORDER-RIGHT: #666666 1px solid; PADDING-TOP: 4px; LEFT: 130px" id=hmExbDCPart_I3 title="" hh="99"&gt;Account Menu&lt;/DIV&gt;
  &lt;DIV style="POSITION: absolute; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #db5500; FONT-STYLE: normal; PADDING-LEFT: 4px; WIDTH: 93px; PADDING-RIGHT: 4px; FONT-FAMILY: Verdana, Verdana, Tahoma; HEIGHT: 22px; VISIBILITY: inherit; FONT-SIZE: 9pt; OVERFLOW: hidden; TOP: 0px; CURSOR: hand; FONT-WEIGHT: bold; BORDER-RIGHT: #666666 1px solid; PADDING-TOP: 4px; LEFT: 230px" id=hmExbDCPart_I4 title="" hh="92"&gt;Withdrawals&lt;/DIV&gt;
  &lt;DIV style="POSITION: absolute; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #db5500; FONT-STYLE: normal; PADDING-LEFT: 4px; WIDTH: 121px; PADDING-RIGHT: 4px; FONT-FAMILY: Verdana, Verdana, Tahoma; HEIGHT: 22px; VISIBILITY: inherit; FONT-SIZE: 9pt; OVERFLOW: hidden; TOP: 0px; CURSOR: hand; FONT-WEIGHT: bold; BORDER-RIGHT: #666666 1px solid; PADDING-TOP: 4px; LEFT: 323px" id=hmExbDCPart_I5 title="" hh="120"&gt;Annual Decisions&lt;/DIV&gt;
  &lt;DIV style="POSITION: absolute; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #db5500; FONT-STYLE: normal; PADDING-LEFT: 4px; WIDTH: 105px; PADDING-RIGHT: 4px; FONT-FAMILY: Verdana, Verdana, Tahoma; HEIGHT: 22px; VISIBILITY: inherit; FONT-SIZE: 9pt; OVERFLOW: hidden; TOP: 0px; CURSOR: hand; FONT-WEIGHT: bold; BORDER-RIGHT: #666666 1px solid; PADDING-TOP: 4px; LEFT: 444px" id=hmExbDCPart_I6 title="" hh="104"&gt;Administration&lt;/DIV&gt;
  &lt;DIV style="POSITION: absolute; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #db5500; FONT-STYLE: normal; PADDING-LEFT: 4px; WIDTH: 80px; PADDING-RIGHT: 4px; FONT-FAMILY: Verdana, Verdana, Tahoma; HEIGHT: 22px; VISIBILITY: inherit; FONT-SIZE: 9pt; OVERFLOW: hidden; TOP: 0px; CURSOR: hand; FONT-WEIGHT: bold; BORDER-RIGHT: #666666 1px solid; PADDING-TOP: 4px; LEFT: 549px" id=hmExbDCPart_I7 title="" hh="79"&gt;Contact Us&lt;/DIV&gt;
  &lt;DIV style="POSITION: absolute; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #db5500; FONT-STYLE: normal; PADDING-LEFT: 4px; WIDTH: 57px; PADDING-RIGHT: 4px; FONT-FAMILY: Verdana, Verdana, Tahoma; HEIGHT: 22px; VISIBILITY: inherit; FONT-SIZE: 9pt; OVERFLOW: hidden; TOP: 0px; CURSOR: hand; FONT-WEIGHT: bold; PADDING-TOP: 4px; LEFT: 629px" id=hmExbDCPart_I8 title="" hh="57"&gt;Log Off&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;'
  </code></pre>
  
  <p>Please ignore the complex html page code. I just want to say that when I copy this in a notepad and save it as a .html page It renders the page properly which should have been.</p>
  
  <p><img src="https://i.stack.imgur.com/ZfWh6.png" alt="This is how it should look like"></p>
  
  <p>But when I am trying to display this in an iframe using this it doesn't display anything:</p>
  
  <pre><code>var textBody = $(printstr);
  var iframeBody = $('#test').contents().find('body');
  iframeBody.append(textBody.html());
  </code></pre>
  
  <p>Here <code>printstr</code> is the string that contains the html string. Any help would be appreciated.</p>