So, I'm working on a HTML page where it shows a list of forums, websites, blogs, etc... as a Link Directory. So far I have 6 pages. Each have their own search bar to search within the list display on the same page. Anyways, my question is, is it possible to have the first search bar be able to gather the information from the other 5 pages while searching.
URL: https://sirchivas.forumotion.com/h4-computer-internet-links
Here are the codes I'm currently using:
If you can guide me to what it needs, I can try to figure it out myself. Thank you.
URL: https://sirchivas.forumotion.com/h4-computer-internet-links
Here are the codes I'm currently using:
- Code:
<input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search for Title on this page only.." title="Type in a name" />
- Code:
#myInput {
background-image: url('https://i.servimg.com/u/f96/18/89/87/02/17254610.png');
background-size: 25px 25px;
background-position: 10px 10px;
background-repeat: no-repeat;
width: 100%;
font-size: 16px;
padding: 12px 20px 12px 40px;
border: 1px solid #ddd;
margin-bottom: 12px;
}
- Code:
<script>
function myFunction() {
var input, filter, table, tr, td, i, txtValue;
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
table = document.getElementById("myTable");
tr = table.getElementsByTagName("tr");
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td")[0];
if (td) {
txtValue = td.textContent || td.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
</script>
If you can guide me to what it needs, I can try to figure it out myself. Thank you.
Last edited by Sir Chivas™ on May 12th 2023, 3:19 pm; edited 1 time in total