Yahoo messenger is famous chat client with lots of features. While chatting with others you can set your status as online or invisible. When you set your status as invisible your status will be shown as offline to your friends. Your status will pretend that you are offline even if you are online.
There is no official way to detect invisible users on Yahoo messenger. But there are many third-party tools to for this purpose.