Pedrosa
Não use scriplet para isso, faço algo assim:
function excluir(){
if(confirm("Deseja realmente excluir esse item?")){
document.forms[0].hidAction.value="Excluir";
document.forms[0].action="seuServlet";
document.forms[0].submit();
}
}
LeoMarola
<html>
<head>
<title>Untitled Document</title>
</head>
<script>
function teste()
{
if(confirm("pergunta?"))
{
alert("true");
}
else
{
alert("false");
}
}
</script>
<body>
<input type="button" name="Button" value="Button" onclick="teste()"/>
</body>
</html>
Experimente :)
febeckers
blz galera!!!
valeu pela ajuda consegui o que queria hehe
te mais!