Check If Html Element Exists With Imacros And Javascript
I want to check if an HTML element exist with iMacros. If it does, I want to go to a URL. If not, I want to go to other URL. Because iMacros doesn't have statements, I used javasc
Solution 1:
var macro;
macro ="CODE:";
macro +="TAG POS=1 TYPE=DIV ATTR=CLASS:some_class CONTENT=EVENT:MOUSEOVER ";
var ret=null;
ret=iimPlay(macro);
if(ret>0)
{
//do something
}
else
{
//do something else
}
This would be the basic model of the script you want. You just have to insert the proper imacros code.
Post a Comment for "Check If Html Element Exists With Imacros And Javascript"