iframe - Safari parent javascript function -
im having strange issue in safari browser, im calling parent window's javascript function within child iframe. iframe's src external site redirect site after work done. redirect page contains following 3 lines of code.
this seems work in browsers except safari.
the call within iframe
<script> self.parent.parent_function("param"); </script>
ive tried several other ways instead of self.parent top.parent_function,etc still main window's location seems change.
one thing noticed while redirect happening within iframe, im getting security certificate warning, once clieck continue, browsers location changes new redirect url instead of iframe's src.
any clues issue ?.
apparently issue safari browser , invalid security certificate of site within iframe. frame busting , changes main window's url if site within iframe having invalid ceritificate.
Comments
Post a Comment