Direct Link Question

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

04-Nov-11 16:22
How can I create a link to go directly to a specific section of a webpage. For example if you click below and click on one of the Positions link such as Executive assistant/Office Manager it takes you to the Executive assistant section of the page. How is this done? Thanks

http://littlegreensoftware.com/careers/
06-Nov-11 08:03

<a href="#executive">Executive Assistant</a>

Place loads of text here

<a name="executive">Executive Assistant</a>


--
http://www.mauconline.net
07-Nov-11 00:40
@eman @mauco: The more usual way to do such links with HTML4/5 is to use the id attribute, like this:


<a href="#executive">Executive Assistant</a>

Place loads of text here

<h2 id="executive">Executive Assistant</h2>


It's cleaner too, since you don't need that extra 'a' element in the page.

Cheers!
Matt

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
07-Nov-11 01:53
@Matt: Thanks for the update

--
http://www.mauconline.net

 
New posts
Old posts

Follow Elated