[FAQ: How can I prevent pages being viewed outside frames ? (HTML / Webdesign)] -- Flightsim Aviation Zone - Number 1 Flight Simulation and Aviation Resource! Information, Tools, Downloads, Databases, FAQ, Aviation Humour, Glossaries, Directory, FS2006, Multimedia, Screenshots, Free Flight Planner, Weather Reports | Aviation Databases - aircraft, airports, airlines, countries, timezones | Flight Simulator X
(x) close
  Friday 17 August 2018 05:40 GMT  

Frequently Asked Questions


FAQ > HTML / Webdesign > question #5
Q: How can I prevent pages being viewed outside frames ?
A: If a page is viewed separately, not in a page frame, one gets redirected to the index.html page (can be changed, see code) using the following code (JavaScript) in the HEAD section:
<SCRIPT LANGUAGE="JavaScript">
if (parent.location.href == self.location.href) {
window.location.href = 'index.html';
}
</SCRIPT>
 Other questions in this category (HTML / Webdesign) :
1. What is HTML anyway ?
2. How have you built this website ?
3. Do I need to learn HTML to build my own website ?
4. How do I make an email link with a subject included ?
5. How can I prevent pages being viewed outside frames ?
6. Can I set ALT-text for text links too, so not only for images ?
Ask a question | FAQ index page | Homepage
Top of page
add to favorites @ E-mail this! Link to this!
Top of page
© 2002-2018 - Legal | Contact | Advertise | Sitemap
Visit our $pons0rs:
hosted by 123XS || also visit: Flightsim Search & Aviation Search || Link to us!