How does one express "On the way to or from school"? Is 上下班 okay? What is the proper way to say, "On the way to or from school (suppose from home)..." For example: "On the way to or from school students like to look through the cars windows."

When referring to: going to, coming from work you use the expression 上下班 but I think my teacher said you cannot use  上下学. The expression 放学回家 means going back from home after school finishes.

Can anyone tell me the right expression? 

If I want to give good point to an answer how can I do it? Last question I didn't know how.
One the way = 途中


On the way to school - 上学途中

On the way to work - 上班途中

On the way home - 回家途中

On the way home from school - 放学回家途中

On the way home from work - 下班回家途中

We say 上下班 because it is short for "上班, 下班"

We usually say  "上学, 放学" not "上学, 下学".  

Although not the logical shortened form, people still use the term 上下学 instead of '上放学' because '上' matching '下' better than '上' matching '放'.

you can replace 下班 with 放工