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


Groups > comp.lang.javascript > #34317

simple question

From super70s <super70s@super70s.invalid>
Newsgroups comp.lang.javascript
Subject simple question
Date 2017-11-12 07:04 -0600
Organization A noiseless patient Spider
Message-ID <super70s-C3F170.07042612112017@reader02.eternal-september.org> (permalink)

Show all headers | View raw


<head>

<script language="JavaScript">
<!-- Begin
var msg = new Array();
Stamp = new Date();
today = Stamp.getDate();

(messages)
(messages)
(messages)
(messages)

function writeTip() { 
document.write(msg[today]);
}
//  End -->
</script>

</head>
<body>

<script>writeTip();</script>

</body>


Hi I have a simple question, if I had two of the above scripts on the 
same page, how can I distinguish one from the other? thanks

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


Thread

simple question super70s <super70s@super70s.invalid> - 2017-11-12 07:04 -0600
  Re: simple question Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-11-12 14:22 +0000
    Re: simple question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-12 18:33 +0100
      Re: simple question Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-11-12 20:28 +0000
        Re: simple question super70s <super70s@super70s.invalid> - 2017-11-12 15:11 -0600
          Re: simple question Andrew Poulos <ap_prog@hotmail.com> - 2017-11-13 13:26 +1100
        Re: simple question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-12 22:39 +0100
          Re: simple question Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-11-13 01:20 +0000
            Re: simple question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-13 03:49 +0100
            Re: simple question Julio Di Egidio <julio@diegidio.name> - 2017-11-13 16:45 -0800

csiph-web