/    Sign up×
Community /Pin to ProfileBookmark

Opening and closing windows – but different!

I know how to open the ‘next’ page in a new window.

However rather than a ’close window’ on the new window, I want to not only close the new window, but revert back to the original page or open it if its not already open..

Hopefully you understand the above requirements?

Why?

Well I have a page (site index/contents) which has loads of graphics on it, which leads to many other pages, so don’t wish to keep reloading the page. The idea is to load the first page, then open secondary pages from the first. In normal circumstance this would be fine.

However I’m concerned that if someone enters the site via a search engine or link in to a secondary page before the ’first’ page has been opened, in which case, by closing the secondary they throw themselves off the site! Hence looking for help

All the pages are standard htm, no asp or frames used.

Thanks in advance for any comments and help.

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@zingmatterJul 22.2005 — You can stop search engines from indexing the secondary pages using a robots.txt file in your root directory. Easier if the secondary pages are in a separate directory because then you can simply stop them from looking in that directory:

The robots.txt file is a simple text file, # are comments
<i>
</i>#The following allows all robots to visit all files because the wildcard "*" specifies all robots.
#User-agent: *
#Disallow:

#This one keeps all robots out.
#User-agent: *
#Disallow: /

#The next one bars all robots from the images directories:
User-agent: *
Disallow: /images/
Disallow: /includes/

#This one bans Roverdog from all files on the server:
#User-agent: Roverdog
#Disallow: /

#This one bans keeps googlebot from getting at the cheese.htm file:
#User-agent: googlebot
#Disallow: cheese.htm


You could also use a script (server-side would be better) to determine if the visiter has come from the right place, and if not, then redirect them to where they should be.

Hope this helps.
×

Success!

Help @A_Very_Wild_Wil spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...