Jump to content

Recommended Posts

Hi,

 

I want to show an alert box With Yes  No Button..

Like:

You want to proceed

 

Yes          No

 

 

Alert gives just OK, and confirm gives Ok and  Cancel buttons

 

Kindly tell me how can i get Yes And No buttons there.

 

It is urgent please....

 

Thanx,

 

Ali

Link to comment
https://forums.phpfreaks.com/topic/81145-alert-box-with-yes-no-buttons/
Share on other sites

if you do some searching; you can find some dhtml custom confirm prompts, that are even more advanced then the example burnside provided you. some will automatically center to your screen, lock out all other web page events until you click "yes" or "no" (or whatever), some even float up and down the page as you scroll.

 

but burnside is right; you cannot customize a common javascript prompt or alert buttons or style. the only thing you can change is the text.

 

PS: you might want to checkout "lightboxes" it's a fairly newer concept; some sites are using them now for custom prompts and advertisement.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.