Make hyperlink in word or pdf file that links to an offline webpage on the local system (how)

Ok, so what I want to do is place a hyperlink to a simple webpage I will create in notepad. the hyperlink will be in MS word and I may wish to convert to a PDF.

The webpage will be stored on my computer, but I also want a collegue to be able to look at it on her computer ( not over the net, i will transfer the folder to her computer with the word doc and html doc) . What I mean is - Let us say the name of the webpage is -

testdoc.html - how do I hyperlink to that on a computer where if I copy the folder ( containing the word doc and the html doc) that it would hyperlink to that offline webpage on her computer. (therefore I can not use an address that is specific to me, i.e. documentsandsettings/myname/ ....

I know it can be done and its simple, just had a bit of trouble explaining it. My bad  
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

this is quite simple right click on the word or address (in MS word) you want to create a hyperlink on the click hyperlink
on the navigation bar find the document /htm file you want to open and click on it

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hello nathan1038,

Well, you could do like this, using windows parameters:


then it will link to C:\documents and settings\[your profile]\desktop\testdoc.html on both computers.

Best Regards,
an image of the insert hyperlink box
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

if you keep the paths the same on each pc then this will work
nathan1038Author Commented:
hi there bradleys - Ok - so when you say keep the paths the say - let us say I put it in My documents -
then on my computer the address has my name ( as in the name of my computer) if I place the file on the other computer - that address changes does it to what ever she named her computer

yes if you put it in my documents then the path will change from machine to machine based on user, if you place it in a folder you create in each machine eg c:\webfolder\yourfile.htm then the hyperlink will work on any m,achine you put it on tin the relevent directory, if you want to do in in "my documents" then you need to use a variable like psyclown stated
Gary CaseRetiredCommented:
A single "." means "the current directory" ==> so if you store the document and the referenced html document in the same directory, then just use the reference ".\testdoc.html" in the address line for the reference.   Then it won't matter where the document is stored (it can be any folder you want), as long as the two files are in the same folder.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.