OnClick Button opens link in new window!

But is there a way to make it so that when the button is clicked it goess to the url.
Maybe something like this:

var ReportSystem = pc.createScript('reportsystem');

ReportSystem.attributes.add('entity',{type:'entity'});




ReportSystem.prototype.initialize = function() {
    var rs = this.entity.findByName('rsBTN');
    rs.element.on('mouseenter', this.onClick, this);
};

ReportSystem.prototype.onClick = function() {
    window.open("https://docs.google.com/forms/d/e/1FAIpQLScI9j-sV2hwUtxk79KCK7WWqAX14eavWB1uWd2HfnHMQEwnmA/viewform?usp=sf_link");
    console.log("link opened");
};