Engineer
Engineer

Reputation: 1436

prevent this page from creating additional dialogs

I am currently working on project and i have requirement to use java script input dialog to take input from user see example

enter image description here

now i want to remove this check box which says that prevent this page from creating additional dailogs how i can remove this message from alert box

Upvotes: 1

Views: 1311

Answers (4)

Engineer
Engineer

Reputation: 1436

i fount the answer

We have two different things going on here...

I'm suggesting adding a preference to about:config (or user.js in your profile folder).

Copy the preference name dom.successive_dialog_time_limit Open about:config Right-click in the preferences area and choose New > Integer Paste the preference name and click OK Then enter 0 and click OK

for more details chek this link

Upvotes: 0

zeppaman
zeppaman

Reputation: 854

You cant remove because it's introduced by browser.

To solve you problem try to employ http://bootboxjs.com/, whit this library you ca do the same by writing:

  bootbox.prompt("Enter password please", function(result) {
   // do something whit result
});

Upvotes: 1

DanielPanic
DanielPanic

Reputation: 192

So what you want to do it's IMPOSSIBLE. Since it's a browser functionality.

Anyway I advice you to use a Model-Box.

You will: - Prevent that from happen - Beautify your website.

You may want to check this: http://www.fallr.net/ I've used it's pretty cool and easy. Tou have the PROMPT-LIKE example wich returns you something written by the user. You can also have a CALLBACK to some AJAX function for example.

So you can't remove it make that clear for you at least for now.

Dont use alert system boxes they are ugly.. really..

Hope it helped!

Upvotes: 0

Gillespie
Gillespie

Reputation: 2228

You can't remove this as it's a browser security feature. You should probably look at other ways of presenting your dialog - use a modal window instead for example.

Upvotes: 0

Related Questions