• Increase font size
  • Default font size
  • Decrease font size

pop-up window before execution of the click event

Once, I had to face following request. There was a html link which was supposed to delete specified item.

 

Something like this:

item1 open delete

item2 open delete

I wanted to pop-up a window with a question "Do you really want to delete item 10?". If user respondes yes, the item is deleted and if no/cancel nothing happens. Here is to solution:

 
<script>
function MyFunction(){
if(!confirm("Do you really want to delete item 10?")) return false;
return true;
}
</script>
 
 
<a href='http://www.strongcv.com' OnClick='return MyFunction();'>delete</a>

 

 

 

Comments  

 
0 #1 We-Vibe 4 Plus 2015-07-09 05:49
Hey! Do you know if they make any plugins to help with Search Engine Optimization? I'm trying to
get my blog to rank for some targeted keywords but I'm not seeing very
good success. If you know of any please share.
Thank you!

Also visit my blog - We-Vibe 4 Plus bilbaoWe-Vibe 4 Plus sevilla (: http://lolatoys.com/es/we-vibe-4-plus.htmlForrest#)
Quote
 

Add comment

No bad words.


Security code
Refresh


Design by i-cons.ch / etosha-namibia.ch