hey all,
I'm using this javascript to send a particular style sheet based on browser.
Code:
if (navigator.userAgent.indexOf("AOL") != -1) {
document.write("<link rel='stylesheet' href='" + css_AOL + "' type='text/css'>");
}
else {
document.write("<link rel='stylesheet' href='" + css_other + "' type='text/css'>");
}
My question is can I use the following to also include Mozilla 4.0?
Code:
if ((navigator.userAgent.indexOf("AOL")!=-1)
||(navigator.userAgent.indexOf("Mozilla/4")!=-1)) {
document.write("<link rel='stylesheet' href='" + css_AOL + "' type='text/css'>");
}
else {
document.write("<link rel='stylesheet' href='" + css_other + "' type='text/css'>");
}
thanks in advance
finstah