Showing results 1 to 2 of 2

Thread: How do I keep a clicked navigation button highlighted?

  1. #1

    Default How do I keep a clicked navigation button highlighted?

    I have a row of buttons in my nav bar, all like this one:

    <a href="#"><div id="navButtonOverview" class="navbutton" onclick="overviewPane()" />Overview</div></a>

    How do I make the button stay a certain color after they click on it? (It is to emphasize the tab/page unity.)

    I thought it would be by:

    .navbutton:active { background-color: red;

    ... but that doesn't change anything on button click. As part of the onclick innerHTML in the JavaScript, I added:

    + "<style type='text/css'>#navButtonOverview{ background-color: #93c2e9; }</style>"

    ... but the style did not change.

    What else should I try?

  2. #2


    user has names on other forums like :
    Evan01, Darrel, Nolan1
    strange type of user /spammer/forum poster…
    some posts are real but useless, other posts are exact copy paste from another forum.

    Search Results | - Community Forums
    the modern world:
    net helpmsg 4006


Posting Rules

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