Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #25592
| From | danca <cyberdanny@tiscalinet.it> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Disable viewing outside of frame set |
| Date | 2014-07-30 15:47 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <lrat1a$jh2$1@dont-email.me> (permalink) |
| References | <lrachh$p3v$1@l01news1.ot.hr> |
Il 30/07/2014 11:05, en2 ha scritto:
> Hi to all.
>
> I didn't work with html or javascript for quite sometime and i can not
> remember how to solve this.
>
> Basically what i want to do is to block to prevent user on accessing
> single web page out of the main frame frameset.
>
> E.g. if the page is www.thePage.com and if the menu link is cars.html
> i want to redirect user to prevent viewing this page outside of
> frameset. So if he makes copy of this link and passes it on new tab like
> www.thePage/cars.html, he should be redirected to www.thePage.com
>
> Thnx in advance !
Maybe something like this?
<script>
function whereAmIRunning(){if (top=windows) location.href=location.host
</script>
<body onload="whereAmIRunnig()">
Dan
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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