Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Java X section, please help

    Hi, I am new member to this website and I would like to ask for some assistance if I may.

    I have an html page (whatever.html) and I want to place a hyperlink on it and when some one clicks on it, it will redirect to my policy page (policy.html) and it will go to specific section. Its java script right?

  • #2
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question

    dose anyone know such script?

  • #3
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    No, If I take you right, it's not Javascript, but HTML.

    In your policy.html, ensure to give a certain element an ID so that you can access on that specific location. For example:
    Code:
    <div id="special">
    This section will be focused one the URL contains "#special" on it.
    </div>
    So, on your whatever.html, you could instruct to link to policy.html at the special section by:
    Code:
    <a href="policy.html#special">Policy</a>
    Hope that makes sense.
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • The Following 2 Users Say Thank You to rangana For This Useful Post:

    hacolol123 (12-01-2008), oesxyl (11-29-2008)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •