Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding Urls in "<A HREF=" tag

Status
Not open for further replies.

storebay

Technical User
Oct 8, 2000
12
TT
Is there a javascript available that hides the url in all the &quot;<a href=&quot; tags on a page? And if it hides it from displaying in the status bar as well would be good. Thanks. [sig][/sig]
 
well as far as the status, you can insert a onmouseover=&quot;window.status='what to say'&quot; that way they dont exactly see the URL in the status, but as far as hiding a simple HTML tag, you cant do it, unless you wanted to make a Javascript command, that is inside of a *.js file and have the url called from there. but other than that, there is no real way to hide something without either compiling it in a Java applet, or using serverside scripting or redirecting. [sig]<p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
[/sig]
 
Thanks kb244! Having the javascript in a js file sounds like an okay idea. How would I go about doing that? What would the script look like and how would I insert it in the file? I'm not too familiar with javascript, but trying to learn it. Thanks again. [sig][/sig]
 
I am not sure really, might make a good question for a thread, but I know that having it in a *js it's still downloaded to the browser, but the user has a much harder time getting to see it. [sig]<p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
[/sig]
 
I may realy worng but you may be able to hide a URl by coding into your script (i.e.&quot; give [john] a new varitable name,in your script ..like
var AnyName=&quot;john&quot;;)
so the URL will look like http:// AnyName@doe.com .....I know that this will work to prevent spaming of your e mail address (mailto) but have never tried it on <A HREF>.... and as far as as the status bar just open a new window and declare no status bar or you can just use window.status=(&quot;&quot;); ....
It is a good question and I hope that it works for you and look foward to any replys you get..good luck .. being a studnet I am not to sure of it...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top