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


Groups > comp.lang.javascript > #25594

Re: Disable viewing outside of frame set

Date 2014-07-31 09:52 +1000
From Andrew Poulos <ap_prog@hotmail.com>
Newsgroups comp.lang.javascript
Subject Re: Disable viewing outside of frame set
References <lrachh$p3v$1@l01news1.ot.hr> <frame-set-20140730154334@ram.dialup.fu-berlin.de> <2978035.TjpaFmbO7j@PointedEars.de>
Message-ID <756dnSD9VJd3GETOnZ2dnUVZ_jWdnZ2d@westnet.com.au> (permalink)

Show all headers | View raw


On 31/07/2014 1:04 AM, Thomas 'PointedEars' Lahn wrote:
> Stefan Ram wrote:
>
>> en2 <nijePravi@mail.com> writes:
>>> frameset. So if he makes copy of this link and passes it on new tab like
>>
>>    Maybe something like:
>>
>> if( top.location.href.toLowerCase() === "www.example.com/cars.html" )
>> top.location.href = "example.com";
>>
>>    . But this would only work in case that someone had enabled JavaScript.
>
> Please don't.

When I read a response like this from someone who knows far more about 
coding than I do I'm unsure what the problem(s) might be. Do you not like:
- frames in general
- partial URLs
- frame busting protection
- "confusing" users by redirecting
- using JavaScript in this instance
- something else

Andrew Poulos

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


Thread

Disable viewing outside of frame set en2 <nijePravi@mail.com> - 2014-07-30 11:05 +0200
  Re: Disable viewing outside of frame set danca <cyberdanny@tiscalinet.it> - 2014-07-30 15:47 +0200
  Re: Disable viewing outside of frame set Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-07-30 17:04 +0200
    Re: Disable viewing outside of frame set Andrew Poulos <ap_prog@hotmail.com> - 2014-07-31 09:52 +1000
      Re: Disable viewing outside of frame set Huub de Beer <H.T.de.Beer@gmail.com> - 2014-07-31 08:26 +0200
        Re: Disable viewing outside of frame set en2 <nijePravi@mail.com> - 2014-07-31 08:53 +0200
          Re: Disable viewing outside of frame set Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-07-31 12:46 +0100
            Re: Disable viewing outside of frame set Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-07-31 14:56 +0200
  Re: Disable viewing outside of frame set JJ <jj4public@vfemail.net> - 2014-07-31 14:11 +0700
    Re: Disable viewing outside of frame set en2 <nijePravi@mail.com> - 2014-07-31 09:50 +0200

csiph-web