Jump to content

Html window position


wasso

Recommended Posts

well my question is a little wierd so please try to understand it :D :D

 

i decided not to use frames in my html page. What i want is that in a certain html pages when you switch for html to another the positon view of the page wont change. As i press on a link that goes to another html, i dont want that the pages view well go back on top and that i will need to scroll down again. i mean that i want the html.page view to be steady, to be set on a certain view position.

Link to comment
Share on other sites

I think Thelma is referring to an anchor. You can have an anchor for the same page so that when you click the link it will take you to another place on the same page (like a link at the bottom of the page that says "top" and takes you back up to the top) or you can have a link that takes you to a place on another page that is not the top, it can be anywhere on the page.

 

The link on the first page would be:-

Item 15

 

and in the code for the page 5 just above the heading for Item 15 you would put in the anchor code:-

 

 

You can use absolute urls if more convenient:-

Item 15

 

and

 

on page 5

Edited by Wickham
Link to comment
Share on other sites

Thanks i think this is what i'm looking for, but i need some directions.

what do you mean above the heading?

 

In pageA.html : i want that when i press on the "id=Education" (link in pageA) to appear on the page position view of the "id=CV" in pageB.html.

i am giving this example because i did understand what you have given me, but i tried to aply but with no sucess. can you apply your instructions depending on my examples.

Link to comment
Share on other sites

Make your link on the first page

Education

 

You put the anchor at the place on the other page that you want to show at the top of the viewing window, so that a page appears to start with a scroll.

 

This assumes that both files are in the same folder/directory.

 

When I said Heading I was just assuming that you have a paragraph heading that you want to show at the top of the viewing window. You can have several anchors on a page with their different links and ids.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...