This is what I use:

<script>
<!--
//delete confirmation
function deleterecord(recordID)
{
if(confirm("This will delete this record. Are you sure you want 
to continue?"))
{
document.location="delete_recordss.cfm?recordID="+recordID;
return true;
}
else
{
return false;
}
}
//-->
</script>


and in the link:

<a href="##" onclick="deleterecord('#recordID#')"><img src="/images/delete.gif
" height="18" border="0" alt="delete record"></a>


BJ






= = = Original message = = =

var conf = confirm('you sure?'); 

should do it... well it will give an OK and Cancel option, you 
will then
to have to check if it was OK or cancel

by if(conf)

HTH

Neil


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to