Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

303
Vistas
when i clicked on button the border color change default in black color in html and css

I used a two-button when I clicked on that button div should be changed using javascript replaced the function the problem is when I click on the button border should be changed by default black color I could not find where it was added that I'm adding screenshots. it happened after I added on click replaced function when I clicked on that border color is black

<script>
        function replace(hide, show) {
            document.getElementById(hide).style.display = "none";
            document.getElementById(show).style.display = "block";
        }
    </script>
     <div class="two_btn">
            <div class="order_btn">
                <button type="button"  onclick="replace('div2','div1')">Order & Collect</button>
            </div>
            <div class="book_collection">
                <button type="button" onclick="replace('div1','div2')">Book UK Collection</button>
            </div>
        </div>

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

It's an on-focus outline, automatically added by your browser. To remove it completely (not advisable), you can add this to your CSS:

button:focus {
  outline: none;
}

Why you should not do this and use a different approach instead:

https://www.a11yproject.com/posts/never-remove-css-outlines/

http://www.outlinenone.com/

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda