Result of normal running: {code...} cannot run after using with: {code...} where is the problem! {Code:
aobj.href="abcdefghi";aobj.target="_blank";aobj.style.backgroundColor='yellow';aobj.style.float= "left"; aobj.style.overflow="hidden";aobj.appendChild(img);
Results that cannot be run:
wiht(aobj){href="abcdefghi";target="_blank";style.backgroundColor='yellow';style.float= "left"; style.overflow="hidden";appendChild(img);}
Please advise if you have any questions!
I changed it for me. Thank you!
Reply content:
Result of normal operation:
aobj.href="abcdefghi";aobj.target="_blank";aobj.style.backgroundColor='yellow';aobj.style.float= "left"; aobj.style.overflow="hidden";aobj.appendChild(img);
Results that cannot be run:
wiht(aobj){href="abcdefghi";target="_blank";style.backgroundColor='yellow';style.float= "left"; style.overflow="hidden";appendChild(img);}
Please advise if you have any questions!
I changed it for me. Thank you!
Wiht spelling error
aobj = { href: null, target: null, style: {}, appendChild: null};with(aobj) { href="abcdefghi"; target="_blank"; style.backgroundColor='yellow'; style.float= "left"; style.overflow="hidden"; appendChild(img);}
With cannot use undefined attributes