Hi all,
its me again..I'm a newbie in javascript. I'm having trouble with the bold style in my javascript. It works fine in IE but not in firefox. Here's a code snippet of what I did.
var anchoryou = new Array(3);
anchoryou[0] = document.getElementById('First');
anchoryou[1] = document.getElementById('Second');
anchoryou[2] = document.getElementById('Third');
var sortvalue = GetUrlParameter('s');
var scope = sortvalue.substring(0,6);
var detector;
if (scope=="")
{
detector=sortvalue.search("Thomas");
if (detector != -1)
{
anchoryou[0].style.font="bold";
}
detector=sortvalue.search("Rowan");
if (detector == "Second")
{
anchoryou[1].style.font="bold";
}
detector=sortvalue.search("Hartley");
if (detector == "First")
{
anchoryou[2].style.font="bold";
}
else
{
}
}
What will I do to make it work both on IE and Firefox???
Appreciate you response.