I need to do a JavaScript function and I want it to receive the parameters in text format:
HTML code:
<button onClick="AlteraNome(Felipe)">Enviar Nome</button>
JavaScript code:
function AlteraNome(nome){
document.write(nome);
}
If someone can help me, thank you!