Escolar Documentos
Profissional Documentos
Cultura Documentos
<HTML>
<HEAD>
<TITLE>Exercício</TITLE>
</HEAD>
<BODY bgcolor=white>
<SCRIPT LANGUAGE="javascript">
<!--
var nome = window.prompt ("Qual o seu nome ?","");
document.write ("<h3>Seja bem-vindo a minha página, ");
document.write (nome);
document.write ("</h3><P><HR>");
// -->
</SCRIPT>
<H2 ALIGN=CENTER> Esta é a minha página. <HR> </H2>
</BODY>
</HTML>
7DEHOD
3URILVVmR &KDWLFHV 3UREOHPDV
Professor Muitas Ainda mais
Sugestão: utilize a função eval, esta função recebe uma string com
uma expressão, calcula o valor e retorna-o.