Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I detect if a web-page is accessed via a form, or not?

Status
Not open for further replies.

Ctroll

Programmer
Jun 11, 2007
3
NO
Folks,

I'm sure this is a classic problem, but I couldn't find the solution:

I present web-pages through framesets. But (i.e.) Google users are being sent directly to the standalone web pages.

Is it possible for a Javascript to detect (via browser session properties?) whether a web page is loaded by a parent frameset (opposed to as a standalone page)? If yes, then I would have the option to redirect the user to the parent frameset.

Thanks for any (helpful) comments.
Hope I made sense. English is not my native language..
 
Sweet.. My first post, and I got the Subject wrong.

Should have been: "How can I detect if a web-page is accessed via FRAMES, or not"?
 
There is an FAQ that may help you: faq216-3190

Maybe you could just provide a link for them to click on (that wraps the page in a frame). Personally, when I encounter a site that uses frames, I just close it right away -- there is always another site out there I can go to for the same information/goods/service. That's just my opinion [smile]

Cheers,
Jeff


[tt]Jeff's Page [!]@[/!] Code Couch
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
That FAQ seems to be the solution
I owe you a virtual beer :)

ps; After 9 years with my non-db driven site, I had to take frames into use for one particular branch of the site. I'm not a great fan of frames myself..


Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top