Help with Javascript

This is my first post and first website created. I have little experience. This being said I cant get this bit of code to work when the button is pushed. I have placed it in the correct spot with no new page opening when pressed. Any help or advice would be GREATLY appreciated.

" - Do not repeat questions . Use the forum search. There’s a great chance that someone has already solved the problem that you are facing. "

That is JavaScript code for embedding something. You have put it inside a html component I guess?

Thank you for any help.