I would call it a sentential adverb. Used to introduce a comment on what has preceded, "by the way" means "incidentally", "in passing", "speaking of that", "while on the subject". CJ
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.