I need to create a pop-up window like this one:
http://gyazo.com/48a138b2e40fda7e5e72acd1b653a518
in JavaScript.
When the administrator clicks on Delete
link one parameter should be passed to JavaScript on-click function.
How can I bind different actions to OK and Cancel buttons ? My actions are like this one below:
<a href="<c:url value="/Invalidate.do?val=INVALIDATE"/>">Logout</a>
Could anyone help me writing this piece of code (complete on-click function)? It would be great if you also show me how to attach this on-click to my link.
Thanks in advance