MainPage

HTML

<p>
  Function <b>NOT WORK</b>
</p>
<a href="https://fiddle.jshell.net/f9e1v1ck/11/show/light/" onclick="var frame = window.open(this.href, 'frame','width=1000,height=825px,toolbar=1,location=0,resizable=1,scrollbars=1');frame.focus(); return false;">Open Window</a>

JavaScript

function simple_function() {
  $("b").text("WORK!");
}