SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Link to a class on another webpage

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Link to a class on another webpage

    Hi

    I want to create a link to a specific part of another webpage (on someone else's site). It does not have any anchors on it. Is is possible to link to its containing div using the class name?

    What would be the code?

    Thanks

  2. #2
    Robert Wellock silver trophybronze trophy
    SitePoint Award Recipient xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,259
    Mentioned
    52 Post(s)
    Tagged
    0 Thread(s)
    Not what I know of, if it had an ID attribute in a suitable place like a heading you could do so.
    };-) http://www.xhtmlcoder.com/
    Thinking Web: Voices of the Community

    > March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?

  3. #3
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    20,310
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by qwaerstd View Post
    Is is possible to link to its containing div using the class name?
    No, it would need to have an ID on it, as said above.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Try your hand at the new JavaScript Challenge!

    If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.

Bookmarks

Posting Permissions

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