470,591 Members | 2,247 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

Link

I have a link to a file on my harddrive on the web page. How can I hide the
link?

Thanks
Jul 20 '05 #1
2 1033
On Thu, 22 Jan 2004 16:37:22 GMT, Jennie <an**@adelphia.net> wrote:
I have a link to a file on my harddrive on the web page. How can I hide
the link?


Comment it out with <!-- SGML comment --> delimiters, or delete it.

There's no security risk; only the fact that it's useless to anyone but
you means you should remove it, so either solution is good.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #2
JRS: In article <op**************@news-text.blueyonder.co.uk>, seen
in news:comp.lang.javascript, Michael Winter <M.******@blueyonder.co.
invalid> posted at Thu, 22 Jan 2004 17:11:12 :-
On Thu, 22 Jan 2004 16:37:22 GMT, Jennie <an**@adelphia.net> wrote:
I have a link to a file on my harddrive on the web page. How can I hide
the link?


Comment it out with <!-- SGML comment --> delimiters, or delete it.

There's no security risk; only the fact that it's useless to anyone but
you means you should remove it, so either solution is good.


If aesthetics demand its absence on the Web, but ergonomics demand its
presence at home using the *same file*, it could be written by javascript
in an include file, or dependent on an include file. For one particular
include file name, say whereami.js, the file on the Web server would
differ from the file on the local machine.

Web :
function That() {}

Home:
function That() {
document.write('<a href="file:\/\/\/c:\/page\/$1.htm">$1.htm<\/a>') }

Personally, I let the local ones show, but make the link test
inconspicuous.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

26 posts views Thread by Harrie | last post: by
8 posts views Thread by sudhirlko2001 | last post: by
14 posts views Thread by Steve McLellan | last post: by
1 post views Thread by sri2097 | last post: by
7 posts views Thread by gehegeradeaus | last post: by
7 posts views Thread by Kurda Yon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.