JavaScript path syntax for iframe "location="

This works:

function go_products()
{
parent.frames.i_body.location="products.htm"
}

This doesn't:

function go_products()
{
parent.frames.i_body.location="../folder/subfolder/products.htm"
}

Help with the path syntax, please?  TIA

johntmciiiAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
GwynforWebConnect With a Mentor Commented:
the above does not work, this does

<a href="../graphics/GR02.htm" target="frame1">Graphics</a>
<a href="../SimplePackage.htm" target="frame1">Package</a>
0
 
justinbilligCommented:
parent.frames.i_body.location="www.domain.com/folder/subfolder/products.htm"
0
 
johntmciiiAuthor Commented:
I was hoping there was a more dynamic way of assigning the path?  I would have to publish my test stuff to make the above work.
0
 
GwynforWebCommented:
I believe it is

"file:///../folder/subfolder/products.htm"
0
All Courses

From novice to tech pro — start learning today.