HTML code link to specific location on a different page?

S

sdmc1964

What are the HTML code fragments to link to a specific text box on a
different page?
 
S

sdmc1964

Yes, I got that to work, but I want the link to go to a DIFFERENT page first
before it goes to the text box. How do I get it to do both in one code box?
 
S

sdmc1964

If I'm understanding correctly, that won't work for what I'm trying to do.
For an absolute link, does the target have to be a saved file?

I have 2 lengthy sets of questions on one page. The answers to the first
set of questions are on a second page and the answers to the second set of
questions are on a third page.

I want to be able to click on any question (which are all in individual text
boxes) and be able to get to the corresponding answer on one of the other
pages.

Can this be done? Sorry to be so dense.
 
D

DavidF

I've got good news, and bad news. Yes it can be done, but not in the way you
would prefer to do it. You have to insert the code snippet OUTSIDE the text
box, not within. There is no way to currently do it within a text box with
Publisher. Rumor has it, that this will be possible with the next version.

Assuming that you are using Pub 2003, and the supporting folder option, then
Publish to The Web, to a folder on your hard drive where you can study the
files. Open the index_files folder and find the page names of the answer
pages. Then you will write your code snippet:

<A HREF="http://yoursite.com/index_files/Page398.htm#READ HERE">Click
here for answer!</A>

Be sure to match upper and lower case exactly (example use the underscore,
not a space when typing "index_files") You can name your anchors READHERE1,
READHERE2, etc., and insert them into your answers pages where you want the
page to load.

As you are using absolute paths/links to those anchors, I don't know that
you can test this on your computer. You will probably have to upload to
test. Just try one link, and one anchor, and see if you get it to work,
before you try to change the whole page.

You might also consider making your question page very long, and have the
answer at the bottom of the page. Then you can use the back to top snippet
to use after reading the answer:
<A HREF="#TOP">Go to top of page</A>
That would be faster than loading a new page, and than hitting the back
button, or a link back...food for thought.

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top