Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: Button/link click not going anywhere Date: Mon, 12 Dec 2016 12:15:31 +0100 Organization: solani.org Lines: 17 Message-ID: References: <01f1e8f6-21ff-4262-8748-ec52521d927f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1481541327 19281 eJwNwgERwDAIA0BLK5DQyekI+JfQ/T2ci5VBMDCYTqdJz65Wnx5rvUiW3HLp5N/rsynbHtC6OjkR8w== (12 Dec 2016 11:15:27 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 12 Dec 2016 11:15:27 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 In-Reply-To: X-NNTP-Posting-Host: eJwFwQERADEIAzBL34OWTQ4w8C/hE5qgDhflXC64c6MyUDPnBss16JzNbozt95R5oBdhRP42gRHy X-User-ID: eJwNyMkBwDAIA7CVYg4D60DC/iO0esqV4ITRab6+dYY6gmoiI7RTLxeyQmErkHJflZwue39+AGcQGw== Cancel-Lock: sha1:kqygyVJZHxC/r9T6X7pS74J5VMk= Xref: csiph.com comp.lang.javascript:31812 On 12.12.2016 at 06:17, JJ wrote: > On Sun, 11 Dec 2016 09:20:56 -0800 (PST), bit-naughty@hotmail.com wrote: >> If I have a button/link, upon clicking of which I do NOT want the browser >> to go off anywhere - ie. say, I want a text to be displayed/box to pop >> up, etc ,etc WITHOUT a refresh, (ie. the text just displays) what do I >> have to do? >> >> Thanks. > > For a link, set the HREF attribute to `javascript:void(0)`. See , for why that may not be the best advice. -- Christoph M. Becker