redirection based on value of title--easy one

wxdqz

New Member
Hi all. I have been looking and this and can't figure out where I am failing. Does anyone see a problem in logic? I want to pass the title value to a page and have it display a different page depending on the input.

function pageTitle()
{
if (pagetitle = "Reporting Home")
{
window.open="/reports/help/wwhelp/wwhimpl/js/html/wwhelp.htm?href=reports.html"
}
if (pagetitle = "Bad Request")
{
window.open="/reports/help/wwhelp/wwhimpl/js/html/wwhelp.htm?href=administration7.html"
}
if (pagetitle = "Compare Group Editor")
{
window.open="/reports/help/wwhelp/wwhimpl/js/html/wwhelp.htm?href=administration7.html"
}
if (pagetitle = "Compare Group Editor Static")
{
window.open="/reports/help/wwhelp/wwhimpl/js/html/wwhelp.htm?href=administration7.html"
}
if (pagetitle = "Compare Group Manager")
{
window.open="/reports/help/wwhelp/wwhimpl/js/html/wwhelp.htm?href=administration7.html"
}
if (pagetitle = "Export Page")
{
window.open="/reports/help/wwhelp/wwhimpl/js/html/wwhelp.htm?href=administration7.html"
}
if (pagetitle = "Access Denied")
{
window.open="/reports/help/wwhelp/wwhimpl/js/html/wwhelp.htm?href=administration7.html"
}
if (pagetitle = "Blah")
{
window.location.href="/reports/help/wwhelp/wwhimpl/js/html/wwhelp.htm?href=administration7.html"
}
if (pagetitle = "Blah")
{
window.open="/reports/help/wwhelp/wwhimpl/js/html/wwhelp.htm?href=administration7.html"
}
if (pagetitle = "Blah")
{
window.open="/reports/help/wwhelp/wwhimpl/js/html/wwhelp.htm?href=administration7.html"
}
else
window.open("Zephyr Reporting Home", target="_self")
}
 
Back
Top