im a bit confused. here is some code from a
servlet i wrote when i knew what i was doing
as usual, ignore the underscore in on_Click, it's just there because UBB wont allow exact code.
PrintWriter out = response.getWriter();
out.println(
.
.
.
"<input type='button' value ='Go To Checkout' on_Click=\"parent.location='http://www.javaguy.dns2go.com/examples/LastChance.jsp?name=" + name + "'\"></form></td></tr>");
why can i use ' for the values 'button' and 'Go To Checkout', but have to use \" for the onClick value? and why inside the \" i can use ' and "?
i think it is because the quotes around button are optional but they are required for the onClick value. can anyone verify that or elaborate?
[ August 07, 2002: Message edited by: Randall Twede ]