<asp:Button ID="myButton" runat="server"
OnClientClick='confirm("How do you escape this apos'trophe?")' />
views:
137answers:
3
+1
A:
Would this work? (I will try in a minute)
<asp:Button ID="myButton" runat="server"
OnClientClick="confirm(""How do you escape this apos'trophe?"")" />
Joe Philllips
2010-04-15 19:31:37
Nope, doesn't work.
Joe Philllips
2010-04-15 19:35:09
+2
A:
<asp:Button ID="btnClone" runat="server" OnClick="btnClone_Click"
OnClientClick="confirm('How do you escape this apos\'trophe?')" />
Claudio Redi
2010-04-15 19:33:35
A:
<asp:Button ID="myButton" runat="server"
OnClientClick='confirm("How do you escape this apos'trophe?")' />
AaronS
2010-04-15 19:33:37
That doesn't work because the confirmation box doesn't evaluate the html codes. Or does it?
Joe Philllips
2010-04-15 19:35:52