Article written "in" or "on" a journal?

Is an article "written in a journal" or "written on a journal"?


In a journal. If you write on a journal it sounds as if you're writing on its cover.