change frame src using javascript - Programmers Heaven

Howdy, Stranger!

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

Categories

change frame src using javascript

myrddinmyrddin Posts: 3Member
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

  • mac_doggiemac_doggie Posts: 488Member
    : 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:[email protected]
    the Netherlands...


Sign In or Register to comment.