Saludos
Por favor si me pueden ayudar tengo el siguiente scrip
 function cargar(url){
    var iframe = document.getElementById("ifradatos");
    iframe.src = url;
    window.frames("ifradatos").location.reload ;
    alert(iframe.src);
 
}
    </script>
    <script type="text/javascript">
        if (top != self) top.location.href = location.href;
    </script>
 
el cual cambia el src del iframe ifradatos, sin embargo no funciona, el momento que lo carga en seguida se refresca y se queda en blanco. EL codigo HTML es el siguiente:
 
<body id="divOpciones">
 
    <form id="form1" runat="server" target ="_parent">
    <div id="divdatos" style="z-index: 104; left: 224px; width: 656px; position: absolute;
            top: 112px; height: 144px">
            <iframe id="ifradatos" height="438px" width="638px" scrolling="no" src="Logs.aspx" 
                marginheight="0px" marginwidth="0px" frameborder="0" style="position: relative; left: 8px; top: 8px; height: 328px;">
            </iframe>
    </div>
    <div>
        <asp:Label ID="lbltitulo" runat="server" Text="Unidad de Negocio:" Width="472px" style="z-index: 100; left: 320px; position: absolute; top: 40px" Height="32px" BackColor="Aqua" BorderColor="Snow" BorderStyle="Double" Font-Bold="True" Font-Size="Large"></asp:Label></div>
 
      <div style="z-index: 103; left: 8px; width: 184px; position: absolute; top: 112px;
        height: 336px" id="divopcion">
        <asp:LinkButton ID="lkbLogs" runat="server" BorderColor="#00C000" Font-Bold="True"
                Font-Size="Large" ForeColor="Black" Height="32px" Style="z-index: 100; left: 32px;
                position: absolute; top: 24px" Width="104px" BorderStyle="Outset" OnClientClick ="cargar('b.aspx')">Logs</asp:LinkButton>
        <asp:LinkButton ID="LKBXML" runat="server" Font-Bold="True" Font-Size="Large" OnClientClick ="cargar('a.aspx')"
                ForeColor="Black" Height="32px" Style="z-index: 102; left: 32px; position: absolute;
                top: 80px" Width="104px">XML</asp:LinkButton>
      </div>
    </form>
 
</body>
 
es encillo al dar un clik en los linkbutton debe activa la funcion de javascrip y cambar el src del iframe, por favro puden ayudarme a hubicar el error? 
  
 
:
 
