Advanced Web Designers

Advanced Web Designers

Share

13/04/2018

CODE TO MAKE SEARCH BOX IN JAVASRIPT :



var NS4 = (document.layers);
var IE4 = (document.all);
var win = window;
var n = 0;
function findInPage(str) {
var txt, i, found;
if (str == "")
return false;
if (NS4) {
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
if (n == 0)
alert("Not found.");
}
if (IE4) {
txt = win.document.body.createTextRange();
for (i = 0; i 0) {
n = 0;
findInPage(str);
}
else
alert("Sorry, we couldn't find.Try again");
}
}
return false;
}






JavaScript Free Code

Want your business to be the top-listed Accountant in Butwal?
Click here to claim your Sponsored Listing.

Telephone

Address


Butwal
32900