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

150
Vistas
Nested quotes in html page

I have a button in my html code to reset password that have nested quotes

<button type="" class="btn btn-primary" onclick="window.location.href='{% url 'password_reset' %}'">Forgot Password</button>

The button work on site and doesn't seem to have any problem so far. But my VS Code give me the following problem

';' expected.

Should I be concerned about this problem?

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

0

Technically no, since semicolons in javascript are used to seperate statements and there is only one line of code in this nested quote. There is also automatic semicolon insertion after every line therefore will still work when running. However, it is always encouraged to add semicolons after each statement to make the code easier to read and just simply look better. This can also ensures the consistency of the code incase JS wrongly interpert it. But in this case, it is your choice to decide whether to add the semicolon or to ignore the warning. Try "window.location.href='{% url 'password_reset' %};'" to fix the issue

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