1570s, from side (n.) + way, with adverbial genitive. To look sideways "cast scornful glances" is recorded from 1844.