javascript - Microsoft JScript runtime error: Access is denied. When child html function call to parent html function -
in asp.net application trying enlarge image in iframe, shown below
<head id="head1" runat="server"> <script type="text/javascript"> function showbigimg(){ alert('works'); } </script> </head> <body> <form id="form1" runat="server"> <%--other page controls--%> <iframe id="htmliframe"> <html> <head></head> <body> <a href="#" onclick="parent.showbigimg();"> <img src="../someimage.png"/> </a> </body> </html> </iframe> </form> </body>
when click on image in iframe access denied in ie , permission denied access property in ff.
am doing in right way or there alternate method.
edit: place div in parent html img enlarged size, when showbigimg called
Comments
Post a Comment