function openmodalWin() { window.showModalDialog("ClockPopUP.aspx", "Clock", "dialogWidth:550px;dialogHeight:350px,"); }
<asp:Button ID="Button1" runat="server" Text="Lunch" CausesValidation="false" CssClass="bigbuttons" style="background:url(../App_Themes/Images/green-box.gif)" Font-Bold="True" ForeColor="White" Font-Size="Large" OnClientClick="openmodalWin(); return false;" />
<body onbeforeunload="return returTime()"> </body>
function returTime() { var closeTime;//assign this variable with jQuery Clock window.returnValue=closeTime }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)