Its a type of social engineering. I'm sure you don't really have a trojan (unless it was your antivirus software telling you that), its probably just an advertisement, trying to trick you into buying more software that you don't need.
My solution:
Stop using crappy software.
www.mozilla.org <-- try that browser out