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


Groups > comp.lang.javascript > #40399

Re: Mystery (DOM change when JavaScript is disabled)

Path csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail
NNTP-Posting-Date Mon, 20 Sep 2021 18:17:37 -0500
Subject Re: Mystery (DOM change when JavaScript is disabled)
Newsgroups comp.lang.javascript
References <mystery-20210920233407@ram.dialup.fu-berlin.de>
From Andrew Poulos <ap_prog@hotmail.com>
Date Tue, 21 Sep 2021 09:17:35 +1000
User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
MIME-Version 1.0
In-Reply-To <mystery-20210920233407@ram.dialup.fu-berlin.de>
Content-Type text/plain; charset=utf-8; format=flowed
Content-Language en-AU
Content-Transfer-Encoding 7bit
Message-ID <IIidnTWlhOIMi9T8nZ2dnUU7-R_NnZ2d@westnet.com.au> (permalink)
Lines 45
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 203.219.129.187
X-Trace sv3-4ovOy/cBP/2QBBjB/DNGcy+ftIgoFwCkF2gbZmOMmkn/z81W3Sy8l0qbAs4+K31VwXN5fprDJQHvu9f!wT5iJwLUE4+1ZJBOTZluuGsqNz30XH9AVvWnYcq6CARPg9vtFV4ktmMEG4VMkxynJay2bFOTeVty!ofgCebGlXR57DWbUQTSLpg0=
X-Complaints-To abuse@westnet.com.au
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 3048
Xref csiph.com comp.lang.javascript:40399

Show key headers only | View raw


On 21/09/2021 8:51 am, Stefan Ram wrote:
>    A web page has a link that is shown (in the status bar when
>    the mouse is positioned over it) as, e.g.,
> 
> http://www.example.com/
> 
>    . When one clicks on it (even with the /right/ mouse bottom),
>    it is being changed into something like
> 
> http://www.badcompany.com/redirect?uri=http%3A%2F%2Fwww.example.com%2F
> 
>    . I have looked at the DOM before the click and then again after
>    the click and it seems that the DOM is being changed from
> 
> ... href="http://www.example.com/" ...
> 
>    into
> 
> ... href="http://www.badcompany.com/redirect?uri=http%3A%2F...
> 
>    . Ok, this is annoying. I assumed that the click is being intercepted
>    with JavaScript and then the href attribute is changed.
> 
>    To get rid of the nasty "clickjacking", I disabled JavaScript before
>    I clicked on the link with the right mouse button to "copy" the URI).
>    What bewildered me: The link is still changed /with Java-Script/
>    disabled! How is this possible?
> 
>    I tried the same thing with a different browser and still see the
>    same behaviour.
> 
>    Is it possible that after a page has been loaded and some scripts
>    already have been executed, disabling JavaScript might not
>    immediately disable running any JavaScript from that moment on?
>    Is it possible that some JavaScript statements still can be executed?
> 
>    I have no idea how else it can be possible that the link is
>    being changed when JavaScript is disabled.
> 
>    Or is there any HTML feature that would allow to have such a
>    change of the DOM happen without JavaScript?          TIA!

They could be using CSS to hide one link, on hover, and show another?

Andrew Poulos

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


Thread

Re: Mystery (DOM change when JavaScript is disabled) Andrew Poulos <ap_prog@hotmail.com> - 2021-09-21 09:17 +1000

csiph-web