Is there any way to make a link so that when you cllick on it it opens in middle of page?

6 replies
Can you make a link so that when you click on it the new page opens but in the middle? Usually when you click on a link the linked page opens at the top...can you make it so that it opens half way down? Like to a specific location?
#cllick #link #make #middle #opens #page
  • Profile picture of the author 300SMG
    Yes..it's referred to or was back in the day as a 'bookmark'

    Where you want the link to open .... <a name="anchor1" id="anchor1">Anchor text</a>

    Then second, you create the link to the section using the anchor tag (a) and the href attribute. You indicate the named area with a pound-sign (#). e.g.

    Link to click....<a href="page.html#anchor1">Anchor link</a>

    The trick to this is to make sure that you have put the <a name> around text or an image.
    Signature

    Don't focus on the money - focus on the plan!

    {{ DiscussionBoard.errors[7102571].message }}
    • Profile picture of the author bigballin6161
      Originally Posted by 300SMG View Post

      Yes..it's referred to or was back in the day as a 'bookmark'

      Where you want the link to open .... <a name="anchor1" id="anchor1">Anchor text</a>

      Then second, you create the link to the section using the anchor tag (a) and the href attribute. You indicate the named area with a pound-sign (#). e.g.

      Link to click....<a href="page.html#anchor1">Anchor link</a>

      The trick to this is to make sure that you have put the <a name> around text or an image.

      Thanks but I cannot understand this! Damn!
      {{ DiscussionBoard.errors[7107211].message }}
  • Profile picture of the author WeavingThoughts
    Use anchor tags and hypertext with anchor links. Easily possible provided you have access to the code of the target page as well. Otherwise it may be more advanced coding
    {{ DiscussionBoard.errors[7107333].message }}
  • Profile picture of the author bigballin6161
    This sounds too complicated...so much for that idea lol
    {{ DiscussionBoard.errors[7112251].message }}
  • Profile picture of the author edpudol1973
    Here is a sample...

    Let's say the file where the link located is page1.html

    page1.html

    <a href="page2.html#middle">Clickable Text</a>

    page2.html - this is the file to be open when you click the link we created from page1.html

    <a name="middle">Enter the text here where it shows when the link from page1.html click</a>

    position the <a name> tag in your page that you want to show when the link in page1.html is click
    {{ DiscussionBoard.errors[7112310].message }}

Trending Topics