JS - target blank with javascript

0 votes
236 views
added Oct 12, 2022 in Javascript by lcjr First Warrant Officer (11,850 points)
showMore = () => { 
  window.open('/rent/malaysia/all-commercial?coworking=1', '_blank');
};

<div className="row">
    <div className="col-12 show-more text-center">
        <button
            type="button"
            className="btn btn-primary see-all"
            onClick={this.showMore}
        >
            Show more listings
        </button>
    </div>
</div>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...