Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i prompt user to delete the

Status
Not open for further replies.

vovan1415

Programmer
Dec 6, 2001
50
0
0
US
How can i prompt user to delete the record?

I mean i need to ask user before deleting record
when user clicks the button.




 
<script>
function uSure(inRec){
message = &quot;Please confirm the deletion of record # &quot; + inRec
if (confirm(message)){
document.location = &quot;deleteRec.asp?recid=&quot; + inRec
}
}
</script>

<a href=&quot;javascript: uSure('27')&quot;>Delete</a> Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top