Would an online masters degree help me to become a professor?
No.

In the US, permanent university-level teaching positions in computer science, even at small four-year colleges, require a Ph.D.  As I explained in my earlier answer, an online master's degree will not help you get into a PhD program.

For some non-tenure-track positions, a master's degree with a thesis may be enough, but a terminal/professional/course-based master's degree won't be; whether that terminal master's program is online or on-campus is essentially irrelevant.

In short, if you want a permanent teaching position, you need formal research experience.