Uriel
Uriel

Reputation: 39

document.frames is undefined Error in Chrome and FF

hey i have some code that i get Error "document.frames is undefined" in IE it work fine. not in Chrome and FF.

topAppFrame.document.frames["SlipArea"].location = target;

target = SlipArea.aspx

topAppFrame = Window → Login.aspx

any idea? thanks!

Upvotes: 2

Views: 7654

Answers (2)

Uriel
Uriel

Reputation: 39

top.frames["SlipArea"].href= target;

work to me!

Upvotes: 0

Stepashka
Stepashka

Reputation: 2698

There is not such property. Use window.frames instead.

window.frames["SlipArea"].src = target;

Upvotes: 2

Related Questions