[thelist] Hide status message during a:hover
Saila, Craig
csaila at globeandmail.ca
Fri Oct 31 15:01:58 CST 2003
Scott Blanchard wrote:
> I have some javascript functions attached to an <a> tag. I do not
> want the browser to display the javascript function name in the
> status bar of the browser for security purposes. Is there a way to
> hide this for these links?
>
> <a href="javascript:x8doDetails('<%=action%>New',
> <%=request("contentid")%>);">
Best thing to do:
<a href="#"
onkeypress="x8doDetails('<%=action%>New',<%=request("contentid")%>);retu
rn false;"
onclick="x8doDetails('<%=action%>New',<%=request("contentid")%>);return
false;">
Makes it accessible (onkeypress), dumps the evil "javascript:" pseudo
protocol
(<http://www.youngpup.net/?request=/articles/how-to-create-popups.xml>),
and the JavaScript won't show up on mouseover.
Elsewise, if for some reason you can't do that:
<a
href="javascript:x8doDetails('<%=action%>New',<%=request("contentid")%>)
;" onmouseover="window.status='Link action';return true;">
And replace the phrase "Link action" with a descriptor of what the link
does (e.g., "Login to the site").
--
Cheers,
Craig Saila
------------------------------------------
craig at saila.com : http://www.saila.com/
------------------------------------------
More information about the thelist
mailing list