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

173
Vistas
The way to keep the alert display when viewing the production web page

I'm trying to create a program to keep the alert display when viewing the production web page.

For example, I have two pages as follows:

  • TEST environment ) https://example.com/123
  • PROD environment ) https://example.com/456

Only when viewing the PROD page, I'd like to display the alert that covers the content. Please see the image I attached.

enter image description here

As I'm beginner of programing, I have no idea how to realize it. Could anyone give me an advice for this? I have basic knowledges of HTML/CSS/Java/JS.

Thank you!

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

0

Let's define a function like this:

function alertProd(url, prodPattern) {
    if (url.indexOf(prodPattern) >= 0) alert("PROD!");
}

alertProd(window.location.href, "stacksnippets");

Note that I have used stacksnippets as pattern, you will need to change it to 456 when you call the function.

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