Click here to Skip to main content
16,018,318 members
Please Sign up or sign in to vote.
2.29/5 (3 votes)
See more:
I want to hide the checkbox of the message as "prevent this page from creating additional dialogs"

when multiple alert() occurs.

Please help me to hide this checkbox by CSS or any javascript

Thanks in advance
Posted
Updated 26-Jul-16 3:39am

1 solution

You can't disable it.
This is a browser feature and is intended to protect the user, If you could turn it off, all those sites spamming users with dialogs would have a way to stop it.

So in short, no.

Make your application work with it instead of against it, don't rely on dialogs/confirmations to much. rather have a modal-box ask questions, it is pretty too :) - stackverflow[^]

-KR
 
Share this answer
 
Comments
Tom Marvolo Riddle 26-Feb-14 0:09am    
You were absolutely right my 5!
Krunal Rohit 26-Feb-14 0:09am    
Thanks mate :)

-KR
[no name] 26-Feb-14 0:21am    
Thanks KR.But if someone checked "prevent this page from creating additional dialogs",then can i provide one message please uncheck it.Is it possible.
Krunal Rohit 26-Feb-14 0:25am    
I've no idea about it. Sorry mate.

-KR

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900