homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

how do I create a link to a local file via html? - revisited

Msg#: 4479253 posted 10:22 pm on Jul 26, 2012 (gmt 0)

Today I found a discussion from October 2005 about "how do I create a link to a local file via html? [webmasterworld.com]" It was very useful to me. Thanks !

This is what I want to do - -
.....I have created a web-based "Staff Information Center" (SIC). This web site is password-protected (users must login with the username and password that I create for them). There is information there that our staff needs to know. (Staff email addresses, a telephone extension list, pay dates, holidays, etc.)
.....This "online" version is replacing the "Info Center" (IC) that was on the network at our business. The disadvantage of the IC was that you had to be at work in order to use it.
.....For now, until the old Info Center has been totally "retired", I would like a link on the SIC that will connect us to the IC.

Here are two things that I have found - -

I want to put a link to our local file (it is, actually, a HTML file that is located on our company's internal network). I will, of course, notify our staff that, if they are not "at work" then the reference to our network drive will not work. If they are at work, then then the link will work.

The post by Robin_reala on October 14, 2005 was particularly helpful. "In Firefox go File / Open File, find your file, and load it. Then the URL bar will show the correct link for your HTML." I then used that URL and inserted it into my HTML code - -

Here is a link to the old "Information Center"

<a target=_blank href="file:///S:/EVERYONE/Communications/InfoCenter/index.html">
click here

It works great! THANKS for the help !

[edited by: tedster at 1:18 am (utc) on Jul 27, 2012]
[edit reason] added the link [/edit]



WebmasterWorld Administrator mack us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4479253 posted 2:31 am on Aug 1, 2012 (gmt 0)

To improve the user experience you could determine from the ip address if they are at work or away. It would involve some server side scripting but you could only show links to local files if the user is on your network.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved