473,387 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Frame Jumpers

Hi,

I use a snippet of JS in the header section of a dreamweaver template. When
people email each other site links to this site, it forces a "jump" out of
"trapped frames" like in hotmail, etc. What I am wondering, At present I
have the SELF.PARENT.LOCATION set to the site's home page.

Is there any JS function that will capture the current path/filename for the
current page, so that I can automatically "jump" to the actual "current"
page, rather than the site's home-page?

Here is the snippet I use:

<SCRIPT language="JavaScript1.1">
<!--
setTimeout ("changePage()", 30);
function changePage() {
if (self.parent.frames.length != 0)
self.parent.location=http://www.mysite.com/index.htm; }
// -->
</script>

thanks for any help with this!!

Axel
Jul 23 '05 #1
1 1158
You may be okay with a variant of the following Frame Manager script :

http://www.greggriffiths.org/webdev/.../framemanager/

Axel Foley wrote:
Hi,

I use a snippet of JS in the header section of a dreamweaver template. When
people email each other site links to this site, it forces a "jump" out of
"trapped frames" like in hotmail, etc. What I am wondering, At present I
have the SELF.PARENT.LOCATION set to the site's home page.

Is there any JS function that will capture the current path/filename for the
current page, so that I can automatically "jump" to the actual "current"
page, rather than the site's home-page?

Here is the snippet I use:

<SCRIPT language="JavaScript1.1">
<!--
setTimeout ("changePage()", 30);
function changePage() {
if (self.parent.frames.length != 0)
self.parent.location=http://www.mysite.com/index.htm; }
// -->
</script>

thanks for any help with this!!

Axel


Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Kathryn | last post by:
I hope you can help as this is driving me crazy! I have an asp which has 3 frames on it as follows: <FRAMESET rows="50%,*,10%"> <FRAME src="rundetailstop.asp" name="rundetailstop"...
3
by: Cactus | last post by:
Hi, I have a tree like structure build with javascrtip and loads of iframes. How can find the complete 'frame-path' to the frame that focused? I'm sure I can contruct something with hidden input...
2
by: Maik Wiege | last post by:
Hi! I want to show a blinking text over my derived CMDIChildWnd-class. The blinking is done by one view which is hold by my frame. I set up a timer and write text to the parent frame, which works...
5
by: Frame | last post by:
I'm looking for tutorials or articles considering HTML Frames and how to handle them with Javascript. E.g. samples how Frames can exchange information, can a Frame instruct other Frame to update...
4
by: anonymous | last post by:
Thanks your reply. The article I read is from www.hakin9.org/en/attachments/stackoverflow_en.pdf. And you're right. I don't know it very clearly. And that's why I want to understand it; for it's...
1
by: mailing | last post by:
Hello, I am hoping that someone can point me in the right direction. I have 4 frames to my site. Two Rows, Two Columns. |--------------------------------|-------------------------| | ...
11
by: Rob | last post by:
I know, I know, don't use frames. Well, I'm stuck with these frames and I'm trying to add functionality without a complete redsign. You can look at this as a nostalgic journey. Anyway, I've got...
42
by: smerf | last post by:
Using javascript, is there a way to trap an external page inside a frame? I've seen scripts to break out of frames, but nothing to keep a page trapped in a frame.
3
by: wardemon | last post by:
Hi All, I would like to ask how can one resize a frame in a website w/o postback? My scenario is the following I have a left frame, a top frame, and a "contents" frame. I placed an imagebutton...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.