boa tarde, preciso de ajuda para elaborar um código em java script que me permita receber um aviso sonoro sempre que um certo formulário for enviado e não retornar nenhuma exceção.
<h:form>
<h:panelGrid columns=“3”>
<h:outputLabel value=“Nome:”/>
<h:inputText id=“nome” size=“20” />
<h:message for=“nome” />
<h:outputLabel value=“Endereçoo:”/>
<h:inputText id=“end” size=“20” >
<h:message for=“end” />
<h:outputLabel value=“Número:”/>
<h:inputText id=“nro” size=“20” />
<h:message for=“nro” />
<h:outputLabel value=“Telefone:”/>
<h:inputText id=“tel” size=“20” />
<h:message for=“tel” />
<h:outputLabel value=“Cidade:”/>
<h:inputText id=“mun” size=“20” />
<h:message for=“mun” />
<h:commandButton id=“btnE” value=“Enviar” />
<h:commandButton id=“btnL” value=“Limpar”/>
</h:panelGrid>
</h:form>