So I have a variable in my script var mystring = "123" and my web page look like this
<body>
<div id="footer">
123
</div> </body>
I need a script that checks if the variable is the same as the footer content and if is not, replace it.
Just like this :
a="123";
if a == html.content.from.footer then
do nothing;
else
replace html.content.from.footer with a;