Hi and Welcome. My Name is ***** ***** I look forward to assisting you today with your question.
Malwares or adwares usually cause this kind of problem. Do you have another browser (Firefox or Chrome) on your Mac or do you have another computer there ? We have to download something to clean up all malwares and adwares from your Mac first.