ifram issue

Discussion in 'JavaScript' started by x0x, Aug 8, 2008.

  1. #1
    <iframe frameborder=0 height=0 width=0 src=javascript:void(blabl etc)></iframe>
    Code (markup):
    The problem is the javascript inside the iframe tags wont work on OPERA nor IE browsers, it works perfectly on IE. How could I make it work on opera? When I go on the page it should open a invisible page, I shouldn't see anything but the script should run.
     
    x0x, Aug 8, 2008 IP
  2. jpinheiro

    jpinheiro Peon

    Messages:
    1,211
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Well you could do this for opera Users
    this is a PHP Script

    
    
    <?php
    if (strpos($_SERVER['HTTP_USER_AGENT'], 'Opera')) {
      We Are Sorry But The Browser Opera Does not Work on Our Site Please use another browser
    } else {
      <iframe frameborder=0 height=0 width=0 src=javascript:void(blabl etc)></iframe>
    }
    
    ?>
    
    
    PHP:
     
    jpinheiro, Aug 9, 2008 IP