Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31627
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: How to reset onclick event upon event change? |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <aa44f506-fa3c-4e74-9776-b53e1103a1ee@googlegroups.com> |
| Date | 2016-10-30 20:50 +0100 |
| Message-ID | <XnsA6B1D413A9814eejj99@194.109.6.166> (permalink) |
justaguy <lichunshen84@gmail.com> wrote on 30 Oct 2016 in
comp.lang.javascript:
>
> The line 13 in the code below attempts to reset an onclick even to first
> to null and then on line 14, attempts to set it to another action,
Could you please supply line-numbering when mentioning such numbers?
On usenet the lines are not the same on different news-readers.
> however, it's ineffective and how to do it?
How to be ineffective with line-numbers? ROTFL!
> var config = function() {
> // display config / usage info but no dupe display
> if (!document.getElementById('confinfo')) {
> var i = document.createElement('info');
> i.id = "confinfo";
> i.style = "color:green";
> i.innerHTML = conf.usage;
> document.body.insertBefore(i,document.body.firstChild);
>
>
> // prep for next
> var h = document.getElementById('usage').value = "Hide
> config / usage instructions";
> console.log('from top section: ' +h);
> h.onclick = null;
> h.onclick = function () {
> console.log('hide clicked');
> // document.getElementById('confinfo').style.display
> = "none";
> document.getElementById('confinfo').innerHTML = '';
> }
> }
>}
>
>
> Thanks.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to reset onclick event upon event change? justaguy <lichunshen84@gmail.com> - 2016-10-30 12:41 -0700
Re: How to reset onclick event upon event change? justaguy <lichunshen84@gmail.com> - 2016-10-30 12:45 -0700
Re: How to reset onclick event upon event change? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-10-30 20:50 +0100
Re: How to reset onclick event upon event change? justaguy <lichunshen84@gmail.com> - 2016-10-30 13:09 -0700
Re: How to reset onclick event upon event change? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-10-30 21:34 +0100
Re: How to reset onclick event upon event change? justaguy <lichunshen84@gmail.com> - 2016-10-30 13:45 -0700
Re: How to reset onclick event upon event change? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-10-30 22:21 +0100
Re: How to reset onclick event upon event change? justaguy <lichunshen84@gmail.com> - 2016-10-30 15:02 -0700
Re: How to reset onclick event upon event change? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-10-31 10:29 +0100
csiph-web