Grow your CSS skills. Land your dream job.

javascript:void(null); – What is this?

  • # January 23, 2010 at 2:17 am

    javascript:void(null);

    I get this message in the status bar of firefox when I rollover the buttons of a small testimonials slider I’m trying to make on this webpage:
    http://www.graphicalchemy.co.uk/test/wsom

    I’ve no idea what this means or how to fix it.

    Can anyone help?

    Thanks…

    Kelpie.

    # January 23, 2010 at 6:35 am

    Lovely design of site by the way.

    From what I can see, the "href" property of the buttons is set to run "javascript:void(null);"

    It appears you are using a plugin to create the tabbed buttons, as in the source code of tabber.js there is the line

    Code:
    DOM_a.href = “javascript:void(null);”;

    Therefore I assume that it is needed for the script to work. It might just be the way the coder has chosen to stop the page from reloading when you click a number

    # January 23, 2010 at 12:26 pm

    Thanks very much Mark for your help, and also for your kind comments on the design of the site.
    I guess I really just needed to be reassured when I saw the notice in the status bar of Firefox, that the script would actually still work.

    Regards,,
    Kelpie.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".