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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.open page in iframe 1

Status
Not open for further replies.

Nogi

Technical User
Dec 10, 2004
132
BE
I have a problem i can't seem to solve. Maybe one of you could help me out with this.

On a page that is already opened in an iframe called "Mainframe", i have a button that has a javascript function attached to it:

onclick="var w = window.open('../Partitions/' + this.form.txtlink.value, 'txtlink', 'Mainframe','')

It is set to open a page, of which the URL is generated out of ../partitions/+ the value of a textbox called txtlink.

I want this new page to open in the same frame.

any help is very much appriciated
 
This may be what you are looking for...

Code:
onclick="this.location='../Partitions/' + this.form.txtlink.value;"

Cheers,
Jeff

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

What is Javascript? faq216-6094
 
Probably this is more likely:
Code:
onclick="[b]document[/b].location='../Partitions/' + this.form.txtlink.value;"
Cheers,
Jeff

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

What is Javascript? faq216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top