[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On 08/06/11 21:19, Joe Buckle wrote:
On Wed, 2011-06-08 at 11:45 +0100, tom wrote:Just been writing a bit of javascript and it looks like IE8 is screwed: var elem=document.createElement("input"); elem.attribute.type="text"; seems to work on most browsers but not IE8 cant prove for certain ie8 is 'wrong' but it looks like it.. Tom te tom te tomWhat is it you're trying to do by doing this? Are you trying to add text fields on demand on the client side with a button onclick event? Or just trying to produce elements dynamically using javascript? ] elem.attribute.type="text"; is more likely to read something like documnent.getAttribute("type", "text"); Again this depends one what you're trying to do. Joe
element.attribute.text is the equivalent of element.attribute["text"] Tom te tom te tom -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq