- Update - I read a lot on this issue, tried several scripts and needed help to find out what you can or cannot do. The community has responded to all of this, and the next good starting point. (answers here are extracted from the community below, thanks)
YOU CAN'T MAKE A DEFAULT STYLE. It is created by your client (e.g. chrome firefox, etc.).
you can use jquery instead. Instead of using a script like:
function check_domain_input () {var domain_val = document.getElementsByName ('domain'); if (domain_val [0] .value.length> 0) {return true; } alert ('Enter the domain name to search.'); return false; }
because of what the client (firefox chrome, etc.) creates a warning window.
2b. You will tell the code if something should happen in the jquery event loading window, which you can do quite: (Jonathan Payne answered and created Jonathan Payne. Thanks)
<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.21/themes/base/jquery-ui.css" type="text/css" media="all" /> <div onclick="check_domain_input()">Click</div> <div id="dialog" title="Attention!" style="display:none"> Please enter a domain name to search for. </div> <script> function check_domain_input() { $( "#dialog" ).dialog(); </script>
Take a look here jsFiddle: http://jsfiddle.net/8cypx/12/
david source share