By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,196 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

checking something before link activates

P: n/a
i've got a link

<a href="whatever">click</a>

i'd like to check and make sure of something before the user is
allowed to go to the link target.

<a href="whatever" onclick="javascript: if (ok) goto target">click</a>

or

<a href="whatever" onclick="javascript: if (!ok) stop">click</a>

how can i do this

thx
Jun 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ppcguy wrote:
i've got a link
<a href="whatever">click</a>
i'd like to check and make sure of something before the user is
allowed to go to the link target.


See: http://www.javascripttoolbox.com/bestpractices/#onclick

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Jun 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.