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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confirm before second function. 2

Status
Not open for further replies.

travisbrown

Technical User
Joined
Dec 31, 2001
Messages
1,016
What's the proper syntax for this? I'm trying to impose a confirm before executing the second function.

Thanks.

Code:
onclick='return confirm('Are you sure you want to delete this application?');funcDeleteApplication();'><img src='images/btnDel.gif' /></a>"
 
onclick='if confirm("Are you sure you want to delete this application?") funcDeleteApplication();'>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
Code:
onclick='[!]if ([/!]confirm('Are you sure you want to delete this application?')[!]) {[/!]funcDeleteApplication();[!]}[/!]'><img src='images/btnDel.gif' /></a>"

-kaht

[small] <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
[banghead] [small](He's back)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top