snsfrcdvd 0 Posted September 23, 2019 Report Share Posted September 23, 2019 Meu nome é David, vocês poderiam me dizer porque o codigo abaixo não funciona? Muito grato por qualquer ajuda. <?php ?> <html> <button type="button" valor="botao" onclik="funcao()" /> <script type="text/javascript"> function funcao(){ alert("<?php echo "hello!"; ?>"); } </script> </html> Quote Link to post Share on other sites
0 Marcelo_2 0 Posted September 23, 2019 Report Share Posted September 23, 2019 é "onclick", não 11 horas atrás, snsfrcdvd disse: onclik Quote Link to post Share on other sites
Question
snsfrcdvd 0
Meu nome é David, vocês poderiam me dizer porque o codigo abaixo não funciona?
Muito grato por qualquer ajuda.
<?php
?>
<html>
<button type="button" valor="botao" onclik="funcao()" />
<script type="text/javascript">
function funcao(){
alert("<?php echo "hello!"; ?>");
}
</script>
</html>
Link to post
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.