I am trying to make a button for a message system to show an orange dot if there’s a new message. However, i can’t quite get it working. Is it possible?
Here’s the button
<input type="button" value="Messages •" />
And the button on jsFiddle if anyone feels like trying out 🙂
Use a
buttonelement instead.Of course, don’t add your stylings inline. I just did for this example’s sake.
You could also add a class to the
buttonsuch asnew-messagesand then do…Just keep in mind the latter won’t work in older IEs.