Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <1371529.bfuUreu131@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 10 Feb 2012 03:02:04 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: Get attribute from HTA Newsgroups: comp.lang.javascript References: <-uOdnYr0A5Wf-anSnZ2dnUVZ_rSdnZ2d@westnet.com.au> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 52 NNTP-Posting-Date: 10 Feb 2012 03:02:05 CET NNTP-Posting-Host: db944eef.newsspool2.arcor-online.net X-Trace: DXC=;lK2GdYo\iKX36K@\WTHGJA9EHlD;3YcB4Fo<]lROoRA8kFnF^_CM4^I X-Complaints-To: usenet-abuse@arcor.de Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:11530 Andrew Poulos wrote: > If I have this in the head of a HTA > > id="test" > applicationname="Test" > icon="content/scripts/test.ico" > border="thick" > borderStyle="normal" > caption="yes" > contextMenu="no" > navigable="yes" > scroll="yes" > selection="no" > showInTaskbar="yes" > singleInstance="yes" > windowState="normal"> > > How do I get the value of 'scroll'? > > I tried > document.getElementsByTagName("HTA") This cannot work. `HTA' is the namespace prefix, not the element type name. Please get a minimum clue. > and document.getElementsByTagName("HTA:APPLICATION") > > but both return 0 elements. Tough luck. document.getElementsByTagName("APPLICATION") should work as it also works in MSXML. > The answer appears to be, in my case, > > document.getElementsByTagName("head") [0].getElementsByTagName("APPLICATION")[0].scroll Why oh why on Earth are you asking, then? RTFM: PointedEars -- Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. -- Tim Berners-Lee