[ 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
>
You could try
var elem = document.createElement("input");
elem.setAttribute("type", "text");
Joe
--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq