<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Page</title> <script type="text/javascript"> function GetDimensions() { debugger; var txt = document.getElementById("<%=TextBox1.ClientID %>"); alert("height " + txt.style.height); alert("width " + txt.style.width); } </script> </head> <body> <form runat="server"> <asp:TextBox ID="TextBox1" runat="server" Height = "10" Width = "150"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick = "return GetDimensions()" /> </form> </body> </html>
Re: Debugging Javascript VS 2010 BreakPoints