Does IFRAME has location attribute?

Chetan Parekh

Ranch Hand

Posts: 3640

posted 8 years ago

I have following statement in my existing code.
window.frames[myframe.name].location.href = "about:blank";

I searched on Google and did not find any thing like frame.location. Although above code does not give any error. But when I tried with alert(myframe.location) and alert(myframe.location.href), I faced errors.