I've got a HTML Page and i want to Highlight the word OK / Error in green/red
Is this possible "on the fly" with a simple javascript sniplet e.g. Search & Replace?
My Sample:
<html>
<head>
<title></title>
</head>
<body>
OK - Test1 Passed!<br>
OK - Test2 Passed!<br>
Error - Test3 Failed <br>
Some More Text...
</body>
</html>
This is not working, but i thought something like:
<script type="text/javascript">
document.write(document.body.replace("OK", "<font style= background-color:green>OK</font>");
</script>
should do the magic.
All Highlighting or coloring examples i found were much too sophisticated. Hope you solve my Problem in a simple way.
body?