Results 1 to 2 of 2

Thread: Make page open in frames only

  1. #1
    Join Date
    Dec 2005
    Posts
    28
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Make page open in frames only

    Is it possible to have a page open only in a given frameset.
    So that it cannot be open on it's own, but will revert to the given frameset.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    No, but almost. You can use a javascript to do that, but if the user has javascript disabled, it won't do anything. Most folks d have javascript enabled:

    Code:
    <script type="text/javascript">
    if(top.location==location)
    top.location.replace('frameset.htm');
    </script>
    Put that in the head of the page and make frameset.htm point to the frameset page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •