Online transactions: which one is safer – credit card or netbanking?

There are various modes of online transaction, such as through entering credit card details, and through netbanking. Which one is safer? it seems there are some risks with credit card mode mode but is netbanking safer than that?

I seacrched the google but I didn’t find the answer.