I have included the javascript file I have at the top of the HTML file
<link rel="script" type="text/css" href="click.js">
And in my onClick attribute of h3, I have passed onInfoClick().
The onInfoClick function in JS:
function onInfoClick() {
window.open('http://easydiet.io/panel-info.php', '_self');
}
When I click the <h3>, I get an Uncaught Reference Error. I know that I probably can wrap the <h3> in an <a>, and add the href="" property, but is there any other way I can do this as <h3> doesn't support the href property?