Prevent link info to show in the status bar

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Prevent link info to show in the status bar

Post by ljCharlie »

If I put the mouse over a link, the link information is shown in the status bar at the bottom of the browser. How do I turn this off so user would not be able to see the link information at the status bar? The reason is, the link contains an ID that the next page needs to verify and I don't want people to see the ID right on the status bar of their browser.

Any help is grateful!

ljCharlie
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

This is a client side issue.

even if you hide the status bar message, they can still view your source.

Mark
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

window.status = '';

Code: Select all

<a href="whatever.html?id=super+secret" onmouseover="window.status=''">blahblah</a>

although, as Mark said, it's nearly pointless.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

if the ID is so important, i would suggest rethinking your method.

Mark
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post by ljCharlie »

Many thanks for the help and suggestion. If the ID is within a PHP block, can people view the source?

ljCharlie
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if you echo the ID, people can see it, if they want. The only real way to hide it from them entirely is using sessions or similar..
Post Reply