...

View Full Version : JavaScript Confirm on a link



holty
10-14-2003, 09:34 AM
Hi,

I have a link on a site that i'm developing that will remove a persons record. How can I invoke a confirm box when a user clicks on the link to see if they want to go ahead with it?

Thanks

michael.hd
10-14-2003, 09:41 AM
<a href="http://www.url.com" onClick="return window.confirm('confirm logout')" >logout of my website</a>

holty
10-14-2003, 09:47 AM
spot on mate.......

cheers :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum