i have a registration page with a submit button.
i want to show an alert box when the \"user clicks on the submit button\" after which the \"data entered by the user
Did you mean for the javascript to be "alerts("+ str + "');" and not "alert(" + str + "');"?
"alerts("+ str + "');"
"alert(" + str + "');"