var element = document.getElementById("div1"); if(element.scrollWidth > element.clientWidth) element.style.borderStyle="solid"; //whatever change you want to make
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)