Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30959
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Page refresh on click compulsory? |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <6b57de12-0b7b-4d3c-b674-47909c16c2ce@googlegroups.com> |
| Date | 2016-07-22 16:42 +0200 |
| Message-ID | <XnsA64DAA04DAE36eejj99@194.109.6.166> (permalink) |
bit-naughty@hotmail.com wrote on 22 Jul 2016 in comp.lang.javascript: > If I click on something, does it ALWAYS mean that the page will blank, > and the next page will be got? No. > How is this prevented exactly? If I just It is not true. It does it ALWAYS mean that. > do a "addEventListener" with a "click" argument, will it be prevented? Why not start with easier to understand: onclick = '....'; [see below] > (say I just want some type of "box" to popup when a particular link is > clicked, as I've seen on many sites....) I don't understand your "just", because it does it ALWAYS mean that. > I'm still new to this stuff, so learning.... :) Do you think that learning is 'just' for beginners? ============================ Answer, [although it is all over the web]: Have your code return *false*: <myElement onclick = 'myFunction1();myF2();return false;'> ... -- 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
Page refresh on click compulsory? bit-naughty@hotmail.com - 2016-07-22 06:51 -0700 Re: Page refresh on click compulsory? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-22 16:42 +0200 Re: Page refresh on click compulsory? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-07-22 16:28 +0100
csiph-web