JS confrim popup message box - How to change it into yes or no button?

confirm popup message box is always with OK or Cancel Button?
How to change it into Yes or No Button?
Thank you.

I don't think you can change those buttons. However you may try use some rich Javascript library like YUI (Yahoo! User Interface) to pop up custom alert and confirm boxes.
See [http://developer.yahoo.com/yui/examples/container/simpledialog-quickstart.html]
Cheers,
Hari

Similar Messages

  • I'm getting a popup messages "uninstal' how do I stop this?

    Question
    I'm getting a popup messages "uninstal' how do I stop this?

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • APEX 41 Field Help like popup message box

    I am using Apex 4.1
    And would like to use a similar popup message box to what Apex has when you click on a label that has help defined.
    For a list that is created in shared area I am wanting to use the userdefined area 1 as the message text to tell users a bit more about an icon option when they take their mouse over the field label.
    Is the popup message that is used for HELP something that can be called.
    I saw in previous posts about creating a separate form and calling it through a java script call. It can't still be that difficult in 4.1 since they have the field level help.
    Any help is appreciated.
    greG

    You're welcome, and thank you for providing further details of what you did.
    To make things look like this
    my_code := 'readable';in future, try surrounding your code with these tags like

  • Customizing the popup message box

    I know how to use DreamWeaver behaviors to create a popup
    message, but I would like to make the color of the box something
    other than the standard gray. Is there a way to do this by adding
    the color number to the code or by using a graphic for the box? Can
    someone explain how to do this and/or share the code.
    Thank you!

    > No, I'm not talking about JavaScript alerts. I'm talking
    about when you
    > have a
    > word underlined (linked) to indicate that there is more
    information. When
    > you
    > click or roll over the word, a popup message appears.
    If you are referring to 'tooltips' which are pulled from the
    TITLE
    attribute, no, those too are rendered by the browser.
    If you are referring to a javascript based tooltip, then you
    likely can
    change the colors, but I'd have to see the javascript and/or
    the CSS
    associated with it.
    -Darrel

  • Disable the pop-up message box "How would you like to open this file" to open pdf file??

    Hi,
    is there any way i can stop the pop-up box displaying to open pdf file in sharepoint document library? Right now whenever i am trying to open pdf file, asking "how would you like to open"  Read only or edit mode. currently MIME Type is setup
    but still pop-up message box.
    Thanks in advanced!

    Hi ,
    As far as I know, This is a default feature. and is not recommended to delete or deactivate this pop up. 
    This is a feature of office and there is a dll called owssupp.dll which is responsible for getting the popup to open.
    You can go to IE tools> addon settings and deactivate the above dll (sharepoint open document class). But if you do so, then the other office office files which are word/excel/pptx etc.. would aslo gets affected and they also wont get the popup.
    Hope this helps.
    Best Regards, Ashok Yadala

  • How to change default close maximize and minimize button in mac?

    How can I change default close, maximize and minimize button in mac?

    no. but you can make resizable.

  • How to change color when I using delete button?

    Hi experts,
      When I using delete button on input schedule before enter any data, it display the same color on the data range, how can fix the color after using delete button? or is it a formatting problem?
    BPC ver : 7.5 sp3 for NW
    best regard
    Evans.

    Evans,
           Is delete button custom made? i think it is possible with Formatting Range.
          check the below for advanced formatting.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70573b01-657a-2b10-a2b2-ec54bb0a9c8c?quicklink=index&overridelayout=true
    I think you need use CHANGED  as value for CRITERIA.  I don't think NW doesn't support CHANGED value for CRITERIA i guess.
    Thanks,
    Ben.

  • PresaveAction() Popup message box with save and cancel button

    Hi,
    I want to give user an option from popup box with the message "Are you sure to Save you record".
    I got below javascript code but don't know how to show two buttons on popup if user wants to recheck before final saving then he should click CANCEL otherwise SAVE button.
    <script type="text/javascript">
    function PreSaveAction()
    alert("Your request has been submitted");
    return true;
    </script>
    Please advise in above code. 

    Hi,    
    For your requirement, you can use the JavaScript Confirm Box which will contains two buttons in a popup window.
    Here is a demo about checking the value in the “Title” field, if it equals “asdf”, then a Confirm box will come out, then user will be able to choose whether to save or not.
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    var $j = jQuery.noConflict();
    function PreSaveAction()
    var txtStatus = $j(":input[title='Title']").val();
    if(txtStatus == "asdf")
    alert("Invalid Input");
    var r=confirm("Are you sure to Save you record?");
    if (r==false)
    var statusfocus = $j(":input[title='Title']");
    statusfocus .focus();
    return false;
    else
    return true;
    </script>
    Feel free to reply if there still any questions about this.
    Best regards
    Patrick Liang
    TechNet Community Support

  • LOV's in form combo box - how to change font size?

    Greetings:
    I've a table generated form (custom vs. tabular), with a combo-box field that fills with a LOV's that has as it's visible data, a rather long concatenated string. Therefore, this field makes the entire form rather wide when the LOV's contains a long string (as returned from the SQL that gathers the data).
    I've tried using the FONT tag in the 2nd tab (Form wizard) for custom layouts; that didn't work.
    Anyone have ideas for decreasing the font size of the LOV's? Else, I'll have to leave-out some of the info concatenated on that string.
    As always, thanks for you continued guidance and support...
    Ed in Tampa

    Hi,
    Changing the font size and other properties like font color, width, height, etc.. of the form elements can be achieved by using Cascading Style Sheet (CSS).
    It cannot be changed using <FONT> tag.
    In Portal, one can add the CSS attribute to the HTML tags in the custom layout of the form. But adding the CSS attribute to FORM elements (Input, select..)is not possible through Form wizards.
    However, this can be achieved by creating a form through the Dynamic Page. In this case you have to define your whole form.
    To know more about CSS you can visit: http://www.mako4css.com
    Thanks,
    Shivank

  • Updated firefox wants to use an uninstalled font for dialog boxes, how to change the font?

    I'm running Redhat and I just upgraded firefox from 3.0 to 17. Webpages display correctly, but the menu options and dialog boxes are empty boxes. I need to either install the font it's looking for, in which case I need to know what font it's trying to use, or tell it to use a different font. I can't read the preferences menu, either. My older version displays just fine; is there a preferences file I can copy to the new directory to fix it?

    This is what the preferences menu looks like. I have tried selected various fonts that I can read, but it doesn't change what's used in the menus.

  • Show a popup /message box from backing bean

    Hey,
    in my backing bean i run a procedure, then i 'd like to show an alert message depending its output
    can i do that and if yes, then how?

    are you looking for this.
        public void soc5_valueChangeListener(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            BindingContainer bindings = getBindings();
            DCIteratorBinding dciter =
                (DCIteratorBinding)bindings.get("GlLvlAccounts1Iterator");
            Row row = dciter.getCurrentRow();
            if (row.getAttribute("GlalStatus") != "N") // your condition goes here.
                FacesMessage fm =
                    new FacesMessage("Field is protect against update");
                fm.setSeverity(FacesMessage.SEVERITY_ERROR);     //instead of SEVERITY_ERROR use SEVERITY_WARN
                FacesContext context = FacesContext.getCurrentInstance();
                context.addMessage(null, fm);
      //          soc5.resetValue(); 
        }

  • Message mapping -How to change 1.2345 to 12345

    Hi everybody,
    How can I have all the digits of the source field in the target field with the decimal pont removed.
    Source field --1.2345
    target field --12345
    thanks,
    Ramya Shenoy

    Hi,
       Prepare an udf to remove decimal point.
      you can use the following java code for udf .
           String s1="";
                  for( int i=0; i<a.length();i++)
                       if (a.charAt(i) == '.')  {}
                          else
                           s1= s1 +a.charAt(i);
                 return s1;
    regards
    mahesh

  • Popup message box yes no

    When the user presses the submit button, i want a popup with yes no to come up asking 'are you sure you want to submit'. I have found a javascipt example and is easy to implement but i'm not sure of the url to use. if they answer no then fine, do nothing. if they answer yes i need to continue on with the processing. do i need to use a url (i cant even imagine what would need to go in it) or is there some other command i can do? maybe somehow issue a submit or sql update database action? or is there a better way?

    Hello,
    Apex is using a built in variable called REQUEST. Each application button sets the value of REQUEST to the name of the button or to the request value attribute associated with the button.
    Apex also using a pre-defined JavaScript function called doSubmit(REQUEST).
    As you are talking about confirming a 'SUBMIT' action, all you need to do, in case of positive answer from the user, is to submit the page, using doSubmit('SUBMIT');
    The page will be submitted to the server, and all the validations, computations and processes on the page will be evaluated, as if you didn't use the confirmation popup.
    Regards,
    Arie.

  • How to change the behaviour of the Cancel-Button of SSO-Login-Page (Forms)?

    Hi Folks,
    we use SSO-Login to authenticate users using Forms. How do I change the URL which is opened when a user clicks on the cancel button on the SSO Login page?
    In the formsweg.cfg file there is a parameter named ssoCancelUrl, but if I define it, it doesn't work anyway. Seems like it has something to do with ssoDynamicResourceCreate, but I don't exactly understand what.
    Can't I simply change the URL which is opened (globally), when a user hits the cancel button on any SSO-Loginpage.
    Thanks in advance.
    Regards.

    Exactly this does not work! Please watch my settings:
    Global Setting in formsweb.cfg
    # Single Sign-On OID configuration parameter: indicates whether we allow
    # dynamic resource creation if the resource is not yet created in the OID.
    ssoDynamicResourceCreate=false
    # Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
    ssoErrorUrl=
    # Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
    ssoCancelUrl=
    # Single Sign-On parameter: indicates whether the url is protected in which
    # case mod_osso will be given control for authentication or continue in
    # the FormsServlet if not. It is false by default. Set it to true in an
    # application-specific section to enable Single Sign-On for that application.
    ssoMode=false
    App-Specific settings in formsweb.cfg
    [proz]
    envFile=proz.env
    form=proz.fmx
    title=proz
    separateFrame=true
    width=1280
    height=960
    ssoMode=true
    ssoDynamicResourceCreate=false
    ssoCancelURL=http://machinename:port/zugangsportal/
    otherparams=useSDI=yes P_SERVER_URL=machinename:port P_REP_SERVERNAME=machinename_proz ZP_TARGET_ID=%ZP_TARGET_ID%
    When I now access http://machinename:port/forms/frmservlet?config=proz I got redirected to the SSO-Login-Page but the Cancel-Button still links to Middletier Home. Why?
    Regards.

  • How to change highlight color of a focus Button

    When a Button gained focus, there is a dotted line around the button label. I'd like to change the color. Not able to find out how. Is it possible? Please help.

    Hi,
    Use the following methods to that label and set its values to false
    void setBorderPainted(boolean b)
    void setContentAreaFilled(boolean b)
    void setFocusPainted(boolean b)
    This will work out for you

Maybe you are looking for