HI ,
I developed a user control and added in diffrent pages .My requiremnt is to change some td backgound based on the page urls.Please tell me how to write that kind of function.I am writing below function and calling on page load.
function
Changecolor() {
if(window.location.href =="/sites/abc/xyz/SitePages/MyPage2.aspx")
{
document.getElementById('mytd').className = 'class2';
}
else{
document.getElementById('mytd').className = 'class3';}
}