Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18140

Why is this not working

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From "Tony Johansson" <johansson.andersson@telia.com>
Newsgroups comp.lang.javascript
Subject Why is this not working
Date Sat, 19 Jan 2013 17:35:40 +0100
Organization A noiseless patient Spider
Lines 23
Message-ID <kdei12$7eg$1@dont-email.me> (permalink)
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding 7bit
Injection-Date Sat, 19 Jan 2013 16:35:47 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="8fdc2b5af81c338deb7045fc6c39b0e2"; logging-data="7632"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+N+0tXs+uz71MXfMI2XxNS"
X-MimeOLE Produced By Microsoft MimeOLE V6.0.6002.18463
X-Newsreader Microsoft Windows Mail 6.0.6002.18197
Cancel-Lock sha1:+NFEY68ArRlumu2Zl4rPRIzIkkQ=
X-Priority 3
X-MSMail-Priority Normal
Xref csiph.com comp.lang.javascript:18140

Show key headers only | View raw


Hello!
I'm quite now to javascript and wonder why is not the called function 
changinf the value for element with id=demo

<!DOCTYPE html>
<html>
<body>

<p id="demo">testing</p>

<script>
function myFunction(a,b)
{
   return a*b;
}

for (int i = 0; i< 10; i++)
document.getElementById("demo").innerHTML=myFunction(4,3);
</script>

</body>
</html> 

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Why is this not working "Tony Johansson" <johansson.andersson@telia.com> - 2013-01-19 17:35 +0100
  Re: Why is this not working Tim Streater <timstreater@greenbee.net> - 2013-01-19 16:52 +0000
    Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-19 18:45 +0100
  Re: Why is this not working Martin Leese <please@see.Web.for.e-mail.INVALID> - 2013-01-19 10:17 -0700
  Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-19 18:26 +0100
    Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-19 18:50 +0100
  Re: Why is this not working Richard Yates <richard@yatesguitar.com> - 2013-01-19 11:11 -0800
    Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-19 21:17 +0100
      Re: Why is this not working Richard Yates <richard@yatesguitar.com> - 2013-01-19 14:30 -0800
        Re: Why is this not working Stefan Weiss <krewecherl@gmail.com> - 2013-01-20 02:52 +0100
          Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-20 03:08 +0100
            Re: Why is this not working Stefan Weiss <krewecherl@gmail.com> - 2013-01-20 04:32 +0100
              Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-20 04:46 +0100
  Re: Why is this not working Danny <dann90038@gmail.com> - 2013-01-19 12:42 -0800
    Re: Why is this not working "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-19 22:53 +0100
  Re: Why is this not working Jeff North <jnorthau@yahoo.com.au> - 2013-01-20 15:13 +1100
    Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-20 06:45 +0100
  Re: Why is this not working Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-01-20 18:20 +0000

csiph-web