Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

how can i go up a level in javascript?

I have a website that was written by someone else, i am using it to build a new page and the owner wants to keep most of the functionality. One of the functions is a slideshow, it is located in the folder "/domainname/resources/designcenter/slideshow/index.html" the file I am working with is in "domainname/info/about/about_us.html" the java script is

href="javascript:;"

onClick="MM_openBrWindow('/resources/designcenter/slideshow/index.html','','width=420,height=500')

How do I get the commmand to go to the correct folder? I have tried the HTML version that I know (../../) but that isnt working.

Thanks

1 Answer

Relevance
  • 1 decade ago
    Favorite Answer

    I am a little bit confused, so here's two answers:

    1- If the pathways you typed are totally correct, and there is a folder 'domainname' then the MM_openBrWindow function must be adding a string, '/domainname', to the '/res..' string that is being passed in. You could take that out of the function and then pass '/domainname/res..' to achieve the same result.

    2- If the '/' was a typo in the first pathway you typed, then the solution should be simple. 'resources' and 'info' are at the same level, so you don't need to travel up any folders. You should be able to go to the correct folder simply by typing '/info...'

Still have questions? Get your answers by asking now.