take it into one's head

/T EY1 K IH0 T IH0 N T UW0 W AH0 N EH0 S EH0 D/
verb
  1. 1

    To be seized with a sudden (often ill-advised) notion.