Hi guys,
Can you please explain why when click on Maximize/Restore button the "onbeforeunload" event of parent window is fired? And how it can be avoided?
Here is the code:
Browser: IE 7
Can you please explain why when click on Maximize/Restore button the "onbeforeunload" event of parent window is fired? And how it can be avoided?
Here is the code:
<%@ Page Language="C#" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<html> |
<head> |
<title>Rad Window Test</title> |
</head> |
<body onbeforeunload="alert('onbeforeunload')"> |
<form runat="server"> |
<asp:ScriptManager ID="PageScriptManager" runat="server"> |
</asp:ScriptManager> |
<%for (int i = 0; i < 100; i++) {%> |
<a onclick="radopen('http://google.com/', 'testWind')" href="javascript:void(0)">google</a><br /> |
<%} %> |
<telerik:RadWindowManager ID="RadWindowManager2" runat="server"> |
<Windows> |
<telerik:RadWindow ID="testWind" runat="server" /> |
</Windows> |
</telerik:RadWindowManager> |
</form> |
</body> |
</html> |
Browser: IE 7