From: Daniel H. <dan...@gm...> - 2005-06-10 09:41:31
|
Hi, is there another (more elegant) way to access style attributes as the one I have chosen? StyledElement element = (StyledElement)nextPage.getHtmlElementById("error"); String s = element.getStyleAttribute(); int start = s.indexOf("display:") + "display:".length(); String attributValue = s.substring(start, s.indexOf(";", start)).trim(); Thanks, Daniel |