By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,317 Members | 1,303 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,317 IT Pros & Developers. It's quick & easy.

Identify which page is loaded in main frame of a frameset

P: n/a
Hi,
I am trying to set up a web site using a frameset. There is a
frame on the right-hand side for the menu (menuFrame), a header frame
(headFrame) and the main frame (mainFrame) which displays all the
pages selected from the links in menuFrame.

I need to know how to identify which page, from the selection in
menuFrame, is loaded in mainFrame.
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <8b**************************@posting.google.com >,
An**********@AMT-SYBEX.com enlightened us with...
I need to know how to identify which page, from the selection in
menuFrame, is loaded in mainFrame.


Try
var loc = top.frames['mainFrameName'].document.location.href;

--
--
~kaeli~
"No matter what happens, somebody will find a way to take
it too seriously."
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.