Skip to content
Snippets Groups Projects
Commit 121f53f6 authored by Usuario's avatar Usuario
Browse files

Merge origin/master

parents d557388a 5cdb61a7
Branches
No related tags found
No related merge requests found
......@@ -40,3 +40,20 @@ function pswigual(){
}
}
function confirmarBorarNook(){
confirm("mensaje");
var mensaje;
var opcion = confirm("Clicka en Aceptar o Cancelar");
if (opcion == true) {
mensaje = "Has clickado OK";
} else {
mensaje = "Has clickado Cancelar";
}
document.getElementById("borrar").innerHTML = mensaje;
}
\ No newline at end of file
......@@ -13,6 +13,10 @@ and open the template in the editor.
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="style.css" rel="stylesheet">
<script type='text/javascript' src='js/miscripts.js'></script>
<script>
confirmarBorrarNook();
</script>
</head>
<body >
<%
......@@ -87,7 +91,7 @@ and open the template in the editor.
</form>
</div>
<div class="nooks">
<button type="submit" class="borrarNook" onclick="window.location.href='borrarNookSV?idNook=<%=misNooks.get(i).getIdNook()%>'">Borrar Nook</button>
<button id="borrar" type="submit" class="borrarNook" onclick="window.location.href='borrarNookSV?idNook=<%=misNooks.get(i).getIdNook()%>'" onSubmit="return confirmarBorrarNook()"s>Borrar Nook</button>
</div>
</div>
<%}%>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment