Every power that turns a creature invisible states a conditional duration.
Conditional Durations last until the condition for ending the duration is met.
The most commonly used invisibility power for players is Eyebite. It lasts until the beginning of their next turn. If they attack someone before that time (spending an action point, or an opportunity attack) they won't become visible because attacking someone isn't the end-condition for that power. Other powers, on the other hand -do- have that condition.
Do note this: If someone has a power that causes invisibility to expire from making an attack, they're quite visible, but considered unseen until the action is resolved (stealth rules, ergo, combat advantage is retained)