Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > The best way to disable javascript link shown in status bar?

Reply
Thread Tools

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

 
 
howa
Guest
Posts: n/a
 
      02-17-2007
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?

 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      02-17-2007
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/
 
Reply With Quote
 
 
 
 
eggie5@gmail.com
Guest
Posts: n/a
 
      02-18-2007

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




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

 
Reply With Quote
 
howa
Guest
Posts: n/a
 
      03-19-2007
On Feb 18, 2:35 pm, "egg...@gmail.com" <egg...@gmail.com> wrote:
> > 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link not shown in "visited" color after clicking Chad ASP General 8 05-23-2006 07:47 PM
Network connection status icon not shown =?Utf-8?B?bWltaXg3OQ==?= Wireless Networking 3 05-11-2006 04:50 PM
SONY Digicam Pictures show way under exposed when shown on PC.. XP Digital Photography 1 12-01-2005 08:56 AM
javascript to disable the title bar, status bar, and address bar of a window Matt Javascript 9 08-23-2004 01:23 PM
NOT SHOWN. The page is not shown until refresh it ! Mete Akalın ASP General 1 07-25-2003 11:28 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57