'How to open item in new page for more details
I want to open item in new page when visitor will click btn with icon search. I want redirect just item1 to new page and show more details about item1. I saw same solutions like: window.location='app2.html; or location.replace('https://...') Is better way to do it ?
//app1.html page1
<div class="container">
// item 1
<div class="col-md-3 text-center border border-light m-4">
<img src="..." alt="..."><br>
<button class="btn btn-primary">
<i class="bi bi-search" data-id="1"></i> // here is btn with id
</button>
</div>
// item2, ...
</div>
//app2.html page2 // new page
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
