Johnson succeeded to the presidency following the assassination of John F. Kennedy on November 22, 1963, completed Kennedy's term and was elected President in his own right, winning by a large margin over Barry Goldwater in the 1964 election .