In all the examples that I have seen, it always defines the variables in the document, it never allows the client to enter their data. I can only use JavaScript, I can not use PHP. If necessary I can add some HTML tag. Here is an example:
<html>
<head>
<title>Ejemplo variables</title>
<script type="text/javascript">
var variable1;
var variable2;
/* Lo que quiero es que estas variables las introduzca una tercera
persona desde un navegador ya que en la mayor parte de ejemplos los
hacen de la siguiente forma "var= variable3="Hola";" La idea sería
similar a rellenar un formulario para que finalmente te saltase un
cuadro modal con toda la información rellenada. */
alert(variable1+variable2)
</script>
</head>
<body>
/* Si es necesario aquí se podría introducir lo que sea, como un botón
por ejemplo. */
</body>
</html>
Is this possible? Thank you very much!