<html>
<head>
<script type="text/javascript">
window.onload=function() {
document.getElementById("div").onclick=function() {
alert("texto mostrado");
}
}
</script>
<body>
<div id="div">clique aqui</div>
</body>
</html>
Fóruns sobre PHP, JavaScript, HTML, MySQLi, jQuery, Banco de Dados, CSS
Moderador: web
<html>
<head>
<script type="text/javascript">
window.onload=function() {
document.getElementById("div").onclick=function() {
alert("texto mostrado");
}
}
</script>
<body>
<div id="div">clique aqui</div>
</body>
</html>
![]() |
0 |