You seem to be misunderstanding the problem. X-Frame-Options
is a header sent back with the request to state if the domain requested will allow itself to be displayed within a frame. It has nothing to do with javascript or HTML, and cannot be changed by the originator of the request.
This website has set this header to disallow it to be displayed in an iframe
. There is nothing you can do to stop this behaviour.