Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32336
| Path | csiph.com!news.freedyn.net!open-news-network.org!newsfeed.datemas.de!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Maik Koenig <usenetspam@maikkoenig.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Having to click TWICE for event |
| Date | Wed, 25 Jan 2017 11:55:52 +0100 |
| Lines | 34 |
| Message-ID | <o6a3o9.8cg.1@mid.maikkoenig.de> (permalink) |
| References | <508acb43-edf6-446c-9f3e-ec2ebd7979cb@googlegroups.com> <o64h6a.9co.1@mid.maikkoenig.de> <e61763a8-65f3-4241-a37f-f9b789d25342@googlegroups.com> <o6612n.998.1@mid.maikkoenig.de> <14f9d324-b305-499b-a9f4-dcc4729413ce@googlegroups.com> <77c28034-be7c-4ac6-a967-6d93c83d18a5@googlegroups.com> <c3fa29cd-21c1-4dc3-9abc-9592d1c23083@googlegroups.com> <cd8fbf19-3908-4790-87e4-11536dd57f1a@googlegroups.com> <13cead90-de25-4215-9e66-f166f8a76e16@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net FRDBwTG2cOxyIw+46fsP2AKoQkJlNAYroREDq6PvyGmWmqTA9U |
| Cancel-Lock | sha1:jBrxOtqGfrlXszvuml5JudteGkc= |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 Hamster/2.1.0.1538 |
| In-Reply-To | <13cead90-de25-4215-9e66-f166f8a76e16@googlegroups.com> |
| Xref | csiph.com comp.lang.javascript:32336 |
Show key headers only | View raw
Am 25.01.2017 um 07:56 schrieb bit-naughty@hotmail.com:
> On Tuesday, January 24, 2017 at 3:10:28 PM UTC-6, Ram Tobolski wrote:
>> >Can you help me out with coding the <body onload part? I'm not sure of the syntax....
>>
>> Sure. You can just locate a <script> at the end of the <body>. See:
>>
>> https://jsbin.com/ruradev/edit?html
>
>
> Ah thanks for that, Ram. But that doesn't have a "onload" anywhere....? What was Maik Koenig meaning??
>
> amai liu
<body onload="f();">
<script>
function a() {
document.getElementById('myid').addEventListener('click,
function(event) {
event.preventDefault();
alert('clicked');
};
</script>
http://www.w3schools.com/jsref/event_onload.asp
Greetz,
MK
--
Kopp-Verlag-Gläubige, Religionsdeppen, rechte Vollidioten
und ähnlicher Bio-Abfall werden ohne Hinweis ignoriert!
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-22 22:55 -0800
Re: Having to click TWICE for event Maik Koenig <usenetspam@maikkoenig.de> - 2017-01-23 09:08 +0100
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-23 10:47 -0800
Re: Having to click TWICE for event Maik Koenig <usenetspam@maikkoenig.de> - 2017-01-23 22:45 +0100
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-24 06:00 -0800
Re: Having to click TWICE for event Ram Tobolski <ramtob@gmail.com> - 2017-01-24 10:27 -0800
Re: Having to click TWICE for event jonas.thornvall@gmail.com - 2017-01-24 10:55 -0800
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-24 11:05 -0800
Re: Having to click TWICE for event Ram Tobolski <ramtob@gmail.com> - 2017-01-24 13:10 -0800
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-24 22:56 -0800
Re: Having to click TWICE for event Maik Koenig <usenetspam@maikkoenig.de> - 2017-01-25 11:55 +0100
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-25 07:03 -0800
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-26 23:59 -0800
Re: Having to click TWICE for event Ram Tobolski <ramtob@gmail.com> - 2017-01-25 11:05 -0800
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-24 23:25 -0800
Re: Having to click TWICE for event Maik Koenig <usenetspam@maikkoenig.de> - 2017-01-25 11:57 +0100
Re: Having to click TWICE for event Ram Tobolski <ramtob@gmail.com> - 2017-01-25 11:14 -0800
Re: Having to click TWICE for event Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-01-24 21:41 +0100
Re: Having to click TWICE for event Ram Tobolski <ramtob@gmail.com> - 2017-01-24 13:13 -0800
Re: Having to click TWICE for event "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-24 23:46 +0100
Re: Having to click TWICE for event Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-01-25 00:20 +0100
Re: Having to click TWICE for event "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-25 11:19 +0100
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-24 23:00 -0800
Re: Having to click TWICE for event Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-01-25 09:32 +0100
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-25 07:05 -0800
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-26 23:58 -0800
Re: Having to click TWICE for event Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-01-27 12:48 +0100
Re: Having to click TWICE for event Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-27 13:13 +0100
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-24 23:03 -0800
Re: Having to click TWICE for event "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-25 11:21 +0100
Re: Having to click TWICE for event bit-naughty@hotmail.com - 2017-01-25 07:10 -0800
Re: Having to click TWICE for event "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-25 17:42 +0100
csiph-web