X
Xero
hi. i want to assign different background image to a web page according to
the query string in the URL. so i write this javascript ...
thisURL = window.location;
if (thisURL.indexOf('bio') != -1) {
document.body.background = "bg2.jpg"
}
... only to find that it doesn't work!
what is wrong with it? thanks.
the query string in the URL. so i write this javascript ...
thisURL = window.location;
if (thisURL.indexOf('bio') != -1) {
document.body.background = "bg2.jpg"
}
... only to find that it doesn't work!
what is wrong with it? thanks.