- <script language="javascript" type="text/javascript">
- function fun()
- {
- var x= event.x;
- var y=event.y;
- document.getElementById("TextBox1").value=x+","+y;
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div style=" width:800px; height:600px" onmousemove="fun()">
- <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
- </div>
- </form>
- </body>