change frame src using javascript

I have a frameset in which I want the source of frame A to be changed from javascript located in frame B. My code is:

var maint_pg = "some_page.asp?vari=whatever"
window.parent.frames["A"].src = maint_pg;

However, the new source never loads to frame A. Any insight is appreciated.

Comments

  • : I have a frameset in which I want the source of frame A to be changed from javascript located in frame B. My code is:
    :
    : var maint_pg = "some_page.asp?vari=whatever"
    : window.parent.frames["A"].src = maint_pg;
    :
    : However, the new source never loads to frame A. Any insight is appreciated.
    :
    :
    try:
    [code]
    var maint_pg = "some_page.asp?vari=whatever";
    window.parent.frames["A"].document.location.href = maint_pg;
    [/code]
    ;-)
    -mac-
    mailto:mac_doggie@hotmail.com
    the Netherlands...


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion