Sunday, 15 July 2012

javascript - How do you change the background color of an html table entry background when something specific happens? -



javascript - How do you change the background color of an html table entry background when something specific happens? -

i'm making html table , need background of boxes alter color after selenium webdriver runs. illustration if webdriver runs through site no errors alter box in table app greenish or if there errors alter box color red. know need java script have never used before.

you can utilize javascript property document.body.style.background.

here illustration :

function changebackground(color) { document.body.style.background = color; }

check here more info : how alter background color javascript?

to alter background color of box when user press come in key instance, click : changing background color of text box input not working when empty.

indeed, need adapt own element.

javascript html css selenium webdriver

No comments:

Post a Comment