/    Sign up×
Community /Pin to ProfileBookmark

3 buttons, YES EDIT CANCEL with confirm

hello friends

whenver i click save, i want a confirmation box,

and 3 buttons, YES EDIT CANCEL.

I know how to get 2 buttons, YES, NO.

but how to get 3 buttons, and add seperate code to all three?

any help and sample code will be appreciated

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceApr 07.2006 — You would have to create your own popup HTML to that effect.
Copy linkTweet thisAlerts:
@ganjumauthorApr 07.2006 — Can you post some sample code? And explain in detail
Copy linkTweet thisAlerts:
@stephen1davisApr 07.2006 — the link to the confirm box would be this:

<a href="#" onClick='window.open("file.html","popupName","width=300,height=150,resizable=no,status=no,scrollbars=no,menubar=no")'>

and the box itself, an HTML file (in this case "file.html") would be like this:





<html>

<head>

<title>Confirm</title>

</head>

<body>

<script type="text/javascript">

function yes() {

do something

}

function edit() {

do something

}

function cancel() {

do something

}

</script>

<form name="main">

<input type="button onClick="yes()" value="Yes">&nbsp;&nbsp;

<input type="button onClick="edit()" value="Edit">&nbsp;&nbsp;

<input type="button onClick="cancel()" value="Cancel">

</form>

</body>

</html>





it's pretty much self-explanatory, i think...
×

Success!

Help @ganjum spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...