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

The best way to disable javascript link shown in status bar?

P: n/a
a traditional javascript usage such as

<a href="javascript:void(0)" onclick="xxx"....

or

<a href="javascript:doSomething()"

will both show the javascript link on the browser status bar...of
course you can use onmouseover to set the status bar text...but you
need to do on all the link....a little over kill....

anyway recommended mehod?

Feb 17 '07 #1
Share this Question
Share on Google+
4 Replies

P: n/a
howa said the following on 2/17/2007 11:16 AM:
a traditional javascript usage such as

<a href="javascript:void(0)" onclick="xxx"....

or

<a href="javascript:doSomething()"

will both show the javascript link on the browser status bar...
Then don't use a javascript: pseudo-protocol.
of course you can use onmouseover to set the status bar text...
Not really. Not anymore. Browsers are getting more and more offended by
authors changing the status bar text.
but you need to do on all the link....a little over kill....
You could do it with one loop in an onload of the body.
anyway recommended mehod?
<a href="someWhereUsefulForPeopleWithoutScripting.htm l"
onclick="xxx;return false;">

If all you want is the onclick of some text, use a button or a span and
use the onclick event of that element. End of problem.

Hack:

<a href="This is status bar text" onclick="someFunction();return false">

Want nothing in the status bar?

<a href="" onclick="someFunction();return false">Link with no status bar
text</a>

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 17 '07 #2

P: n/a
Hack:

<a href="This is status bar text" onclick="someFunction();return false">


HAHA! I love that, I'm going to start using it.

Feb 18 '07 #3

P: n/a
On Feb 18, 2:35 pm, "egg...@gmail.com" <egg...@gmail.comwrote:
Hack:
<a href="This is status bar text" onclick="someFunction();return false">

HAHA! I love that, I'm going to start using it.
this is really COOL !!!

XDDD

Mar 19 '07 #4

P: n/a
howa said the following on 3/18/2007 10:26 PM:
On Feb 18, 2:35 pm, "egg...@gmail.com" <egg...@gmail.comwrote:
>>Hack:
<a href="This is status bar text" onclick="someFunction();return false">
HAHA! I love that, I'm going to start using it.

this is really COOL !!!
Oh geez, wtf have I started now. It isn't cool, it is stupid.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 19 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.