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

214
Vistas
Why won't this JavaScript entity work? (specifically: property="&{JavaScript-statements};" )

I read on a book that "JavaScript entities are values from a script that you use in HTML." I tried copying the code it showed me:

<HTML>
<HEAD><TITLE>Entities Example</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--HIDE
function getWidth(){
  var w = eval(prompt("Enter image width:"))
  return w
}

function getHeight(){
  var h = eval(prompt("Enter image height:"))
  return h
}
//STOP HIDING-->
</SCRIPT></HEAD><BODY>
<CENTER><IMG SRC="gun1.jpg" WIDTH="&{getWidth()};" HEIGHT="&{getHeight()};">
</CENTER></BODY></HTML>

What is expected:
This code is supposed to get the user's answer from a prompt and then return it to set the dimensions of an image.

What resulted:
When I ran the code, I did not get any prompt asking me for any dimensions.

I have already surfed through the web for an answer on this or at least on JavaScript entities but they only show how the code works and the syntax.

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

JavaScript entities were a feature of Netscape Navigator 3.x that did not achieve widespread support.

You should read a book written this century.

about 4 years ago · Santiago Gelvez 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