Solved

Permanently setting the status bar text

Posted on 2001-07-18
7
170 Views
Last Modified: 2006-11-17
Hi,

I don't want users to see the url's for anchors in the status bar, but adding the following to each and every anchor adds too much overhead to my page:

<a href="http://www.wherever.com" onclick="status='static status bar text here'"> click me </a>


Is there any alternative, in which I can set the status bar text to be a static value, without adding weight to my page (I don't want to turn off the status bar).

Thanks,

JP
0
Comment
Question by:jonpers
7 Comments
 
LVL 10

Expert Comment

by:dij8
ID: 6295554
Sadly, no.
0
 
LVL 17

Expert Comment

by:dorward
ID: 6295808
Happily, no. The status bar is there for a reason - some people like to know where they are going before clicking. Even it it were possible it could be bypassed by:

* disabling JavaScript
* viewing source
* "Copy Link Location" and pasting
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 50 total points
ID: 6295883
How about this way.  In the head:

<script language="JavaScript">
<!--
   function setStatic()
   {
      status="static text";
   }
//-->
</script>
then for the on load event:

<body onLoad="x=setInterval('setStatic()',100)">

The urls will flash momentarily, but too fast for anyone to see what
they are.

Cd&
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6295904
BTW,

Hiding the Url does not buy you anything.  As dorward indicated already it is easy to get around no matter how you do it, and sites that do it just end up marked as the work of amateurs, or sleazy.

Cd&
0
 
LVL 1

Author Comment

by:jonpers
ID: 6295936
I'm not trying to stop users seeing the URL at all, it's just that we're using a CMS and the URLS are long and ugly.

I'm probably not going to bother now, but thanks for this which certainly looks like it'd work.

JP
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6295955
Glad I could help.  Thanks for the A. :^)

Cd&
0
 
LVL 10

Expert Comment

by:dij8
ID: 6296101
What about processor usage?  Running a script, a short one granted, but still running a script every 10th of a second has got to have some detrimental affect.

Good outside the box answer though Cd&.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now