The Associated Press

SALEM — The Oregon House has voted to join a movement seeking to elect the president by the national popular vote.

The legislation would require Oregon to cast its seven Electoral College ballots for the candidate who wins the national vote, rather than the one who gets the most votes in Oregon.

It would take effect only if a compact is enacted in states with a majority in the electoral college.

Nine states with 132 electoral votes have enacted it, about half of the 270 needed to win the presidency.

The House’s 38-21 vote Thursday sends the measure to the Senate.