Opening in new window, with frames

They have: 74 posts

Joined: Sep 2000

I use this code:

function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");
}
'
That works perfectly without frames but when used in my frameset, the link opens in the same window, whats causing this?

hehe

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

this is causing it.
as far as I know, this refers to the element calling it.
in your case it probably is refering to the specific frame. (I'm guessing that that is what you meant by "same window")

I believe these are correct, but haven't the time to check.
open a new window, use window.open()
change the location of the current frame, use or self.location=""
change the location of the current window, use parent.location=""

do you have a link? (that always helps)

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 74 posts

Joined: Sep 2000

NOOOOOOOO!
I use the code to open the link in a new window(a popup)
but when I use it with frames the link opens in the same window, but not the same frame, the whole entire window, but i want it to be in a new window that pops up.

hehe

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

window.open() is the proper way to do this
just replace "this" with "window"

They have: 74 posts

Joined: Sep 2000

I tried it and it worked! thanks.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.