The Otherland quartet by Tad Williams (first book: City of Golden Shadow) takes place largely online in a near-future world.
Killobyte by Piers Anthony featured what's essentially a virtual-reality MMORPG, long before the term existed.
ETA - While I haven't read it yet, Erebos by Ursula Poznanski features on online game with possibly sinister motivations.