I assume you're referring to Internet Explorer? It's only in offline mode if "Work Offline" is ticked.
To untick it, just click on "Work Offline" and the tick will disappear.
If it continues to puzzle you, join the many thousands who use a different web browser such as Firefox or Chrome.