I want to call browser window resize method using jquery from with in iframe.
I have used below script which is called on window Resize , but it is not working if that page is included in iframe , and parent window browser get resized
Page name : test.aspx
<script type="text/javascript">
$(window).resize(function () {
alert("hi resize called");
});
</script>
some HTML code here.....
Page name : iframeTest.aspx
<iframe style="width:300px;height:300px" src="test.aspx" ></iframe>
Now when I run "iframe.aspx" on browser , and then browser get resized , then I want to call resize method within "test.aspx"
Can anybody have idea on this?
Thanks
In your test.aspx you can handle the parent window resize event like this:
That should fire when the parent window is resized.