I need to perform certain actions based on which page is loaded in frame "main". These actions (such as document.write) will be performed in frame "leftnavbar", where "leftnavbar.html" will always be loaded. "main" might have "aboutus.html" loaded in it, or "services.html", or any other number of pages.
I need to construct "leftnavbar.html" so that it changes based on which page is loaded in "main".
I think this means I need to handle the following variable
var mainlocation=parent.main.location
as a string, but it isn't a string. I can't return mainlocation.indexOf("services.html"
for example. If I try alert(mainlocation) then I get the complete file path. I want to be able to extract the last portion of it. In VBScript I would have used a right(mainlocation, 13) or str(mainlocation) if mainlocation is a string, or mainlocation.value if it is an object that supports .value.
Any help?
Thanks.
-Christopher
I need to construct "leftnavbar.html" so that it changes based on which page is loaded in "main".
I think this means I need to handle the following variable
var mainlocation=parent.main.location
as a string, but it isn't a string. I can't return mainlocation.indexOf("services.html"
Any help?
Thanks.
-Christopher