Firefox problem

Discussion in 'ASP.NET 2.0' started by Ravi Singh, Apr 14, 2008.

  1. Hi all,

    I am using javascript for setting url for frame control it works in IE properly but in FireFox it shows that 'parent.frame is not a function'.
    Please help me

    my code
    ---------------------------------------------------------------------------------------------------------------
    <frameset rows='175, *' framespacing='0' frameborder='0'>
    <frame name='headerFrame' id='headerFrame' frameborder='0' scrolling='No' noresize>
    <FRAME NAME='targetFrame' >
    </frameset>

    <script type ='text/javascript' >
    alert(parent.frames(0).location);
    </script>
    -----------------------------------------------------------------------------------------------------------------

    Thanks
    Ravi Singh
     
  2. Hi Mark,

    I used following syntax too. But it is not working still.

    ------------------------------------------------------------------
    <frameset rows='175, *' framespacing='0' frameborder='0'>
    <frame name='headerFrame' id='headerFrame' frameborder='0' scrolling='No' noresize>
    <FRAME NAME='targetFrame' >
    </frameset>

    <script type ='text/javascript' >
    parent.headerFrame.location='About:blank'
    </script>

    ------------------------------------------------------------------------
    Thanks for reply
    Ravi
     
  3. Bruce

    Bruce DiscountASP.NET Staff

Share This Page