• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

javascript links you can't right-click on. Why?

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    It's working as designed.
    "A life, Jimmy, you know what that is? It’s the s*** that happens while you’re waiting for moments that never come." -- Lester Freamon

    Comment


      #12
      Originally posted by Bunk View Post
      It's poor practice but you still see it a lot. The href attribute of the link should be the URL of the page it links to. Any additional functionality should be added to the event handler for clicking on the link. That way if a user has javascript disabled then they will still be able to click on the link and reach the intended page. This is known as progressive enhancement.
      What if it doesn't always link to the same place?
      Will work inside IR35. Or for food.

      Comment


        #13
        Originally posted by Freamon View Post
        It's working as designed.
        Or more likely, it's working but it's not designed at all - some developer threw it together without thinking because "everyone uses javascript".
        Originally posted by MaryPoppins
        I'd still not breastfeed a nazi
        Originally posted by vetran
        Urine is quite nourishing

        Comment


          #14
          Originally posted by VectraMan View Post
          What if it doesn't always link to the same place?
          Then you should build the page dynamically on the server.
          +50 Xeno Geek Points
          Come back Toolpusher, scotspine, Voodooflux. Pogle
          As for the rest of you - DILLIGAF

          Purveyor of fine quality smut since 2005

          CUK Olympic University Challenge Champions 2010/2012

          Comment


            #15
            Originally posted by d000hg View Post
            Or more likely, it's working but it's not designed at all - some developer threw it together without thinking because "everyone uses javascript".
            And the developer probably hasn't heard of accessibility.
            Behold the warranty -- the bold print giveth and the fine print taketh away.

            Comment

            Working...
            X