Anyone care to share how I can add a simple promt for asking the user: "Are You Sure You Want to do This?" on submit..... <% 'show Remove Expired button if Mike is logged in If realtor("ID")=1 Then Response.Write("<FORM ACTION='mainmenu.asp' METHOD='post'>") Response.Write("<INPUT type='submit' name='S2' value='Remove Expired'>") Response.Write("</FORM>") End If %> Something like onsubmit="Are You Sure?"
add "javascript: return confirm('are you sure...');" to either the onsubmit action of the form, or the onclick of the submit button
I can't use the "quotes" since it seems to break the line so I used the apostrophy ' ---- Tryed a few different ways and it didn't work for some reason.... Will wait to find more possible ways.... thanks...
try this: Response.Write("<INPUT type='submit' name='S2' value='Remove Expired' onclick=""javascript: return confirm('are you sure...');"">")