title: change iframe source in ie using javascript
body: <p>I have used an iframe which looks like this:</p>
  
  <pre><code>&lt;iframe style='width: 330px; height: 278px' scrolling='no' name="iframeId" class="advPlayer" id="iframeId" frameborder="0" src='../../player/iabpreview.php?adid=&lt;?php echo $selectedAdIdx ?&gt;&amp;amp;autoPlay=true'&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Whenever I click on a <code>&lt;div&gt;</code>, I have to change the source of the iframe. I am using the following code:</p>
  
  <pre><code>if ($j.browser.msie) {            
    frames['iframeId'].window.location="../player/iabpreview.php?adid="+adId+"&amp;autoPlay=true";
  }else {
    $j(".advPlayer").eq(0).attr("src", "../player/iabpreview.php?adid="+adId+"&amp;autoPlay=true");    
  }
  </code></pre>
  
  <p>This works with Firefox, but not with Internet Explorer.</p>
  
  <p>What code would work for Internet Explorer too?</p>