JS - target blank with javascript

0 votes
39 views
added Oct 12 in Javascript by lcjr First Warrant Officer (9,190 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.
...