var str = "<input type='button' id='f10' width='80' height='50' valule='' />"; alert("width = "+str.split("width='")[1].split("'")[0]); alert("height = "+str.split("height='")[1].split("'")[0]);