[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
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 tom
What 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
--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq