Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1069173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:22:58+00:00 2026-05-16T20:22:58+00:00

I’m looking for an alternative to window.prompt(), window.confirm() and window.alert(). It’s required for a

  • 0

I’m looking for an alternative to window.prompt(), window.confirm() and window.alert(). It’s required for a complex web application where the window has an onblur() method and both IE and Safari incorrectly trigger this blur when raising a prompt (actually Safari crashes and IE ignores the prompt because the user hasn’t allowed “scripted windows”). I can disable the window.blur temporarily but the IE issue is more serious and there’s no simple fix.

I know it can be done, I’m just hoping someone may have a nice “out of the box” solution (the lighter the better) that I can use as a simple drop-in replacement. I’d prefer pure JS to something with yahoo/jquery dependencies but I’ll take what I can get.

I’d really like a solution that pauses script execution (like creating an endless loop) but if I have to use callbacks I will. It isn’t necessary to be draggable.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:22:59+00:00Added an answer on May 16, 2026 at 8:22 pm

    Thanks for the responses. Since it looks like most of the answers are going to require a framework I wrote my own solution. It’s extremely lightweight and simple and requires no dependencies I don’t already have. It’s just not as generic or reusable as the framework UI versions.

    HTML

        <!-- CHANGE TITLE DIALOG -->
        <div id="change_title_dialog" class="hidden">
            <p>Please name your new planner</p>
            <input name="title" type="text" value="#fw.planner.title#">
            <div class="dialog_buttons">
                <input id="cancel_change_title" type="button" name="cancel_change_title" value="cancel" onmousedown="this.form.elements.title.value=='#fw.planner.title#';hideLayer('change_title_dialog')">
                <input id="confirm_change_title" type="button" name="confirm_change_title" value="ok" onmousedown="hideLayer('change_title_dialog');confirmTitleChange()">
            </div>
        </div>
    
        <!-- CONFIRM DELETE DIALOG -->
        <div id="confirm_delete_dialog" class="hidden">
            <p>Are you sure you want to delete this planner?</p>
            <div class="dialog_buttons">
                <input id="cancel_delete" type="button" name="cancel_delete" value="cancel" onmousedown="hideLayer('confirm_delete_dialog')">
                <input id="confirm_delete" type="button" name="confirm_delete" value="ok" onmousedown="confirmDelete()">
            </div>
        </div>
    
    <!-- FORM ACTIONS -->
    <input type="button" name="delete" onmousedown="showLayer('confirm_delete_dialog')">
    <input type="button" name="rename" onmousedown="showLayer('change_title_dialog')">
    

    CSS

    #planner #change_title_dialog, #planner #confirm_delete_dialog {
    background-color: #eee;
    color: black;
    border: 1px solid black;
    padding: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -100px; 
    margin-left: -150px;
    width: 300px;
    }
    #planner .dialog_buttons {
        text-align: right;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I've got a string that has curly quotes in it. I'd like to replace
In my XML file chapters tag has more chapter tag.i need to display chapters
I have an array which has BIG numbers and small numbers in it. I
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.