Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004

    Unanswered: window.confirm [Can we customize???]


    I have an ASP application which asks for user confirmation while deleting records

    I am using JavaScript 'window.confirm()' to get tit. But the problem is it show 'OK' and 'Cancel' buttons.

    Is there anyway to change those to Yes/No ro similar behaviour


    Yogesh Jangam
    Do not walk behind me, for I may not lead.
    Do not walk ahead of me, for I may not follow.
    Do not walk beside me, either.
    Just leave me alone.

    Yogesh Jangam

  2. #2
    Join Date
    Jun 2003
    I believe you're stuck with OK and Cancel.

    And here's a sample delete button that uses JavaScript to first ask the user if he is sure he wants to delete:

    <input type="submit" name="btnDel" value="Delete" onclick="return confirm('Are you sure you want to delete this record?');">

    The button only submits if the user is sure.

    And of course the same concept could be applied to a link too.
    J. Paul Schmidt, Freelance Web and Database Developer
    Access Database Sample, Web Database Sample, ASP Design Tips

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts