referring to framesets

C

C. M. G.

When search engines refer to web pages, they ignore frames, in other words,
the link refers to only one of the pages in the frameset. Is there any code
that I can add to an individual page so that when it is opened outside the
frameset, the whole frameset is automatically restored?

Thanks,

Clem.
 
K

Kevin Spencer

(if self == _top) document.location = "url";

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
T

Thomas A. Rowe

You would have to change your frameset to a dynamic frameset using JavaScript:

http://www.echoecho.com/jsframes.htm

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
C

C. M. G.

Thank you, Thomas. I will try that.

Clem.

Thomas A. Rowe said:
You would have to change your frameset to a dynamic frameset using JavaScript:

http://www.echoecho.com/jsframes.htm

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
C

C. M. G.

Kevin,

That is too cryptic for me! I am sorry, I do not understand your reply.

Clem.
 
K

Kevin Spencer

It's JavaScript. _top is part of the DOM (Document Object Model). It
represents the "topmost frame" (window) in the browser. self is the document
window itself. If it is equal to the topmost frame, the document is loaded
by itself outside of a frameset. This script reloads it into the frameset
("url" in my example).

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top