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.