window.location.href not working in IE for every page

Discussion in 'Javascript' started by Sunshine, Sep 11, 2007.

  1. Sunshine

    Sunshine Guest

    I'm working on a web page and I've run into an issue. I'm fairly new
    to JavaScript and web programming so I'm having some trouble debugging
    the code.

    I have a menu which has submenu links that open up various web
    Here is a portion of the menu code....

    <li><a class="mnuparent" href="#" style="padding:0px;"><img
    class="mnu-is mnu-ia" src="/%HOMEPATH%/images/nav/PREFERENCES.gif"
    width="125" height="24" alt="Preferences"></a>
    <li><a href="javascript:Menu_onclick('Func=ChMemNfo-%MEMNUM
    %');">Member Info</a></li>
    <li><span class="mnudivider mnudividery" ></span></li>
    <li><a href="javascript:Menu_onclick('Func=Chgpwd');">Change
    <li><span class="mnudivider mnudividery" ></span></li>
    <li><a href="javascript:Menu_onclick('Func=MfaAdmin');">Who RU

    There is a javascript located in a .js file with a call in the <head>
    <script language="JavaScript" type="text/javascript" src="/%HOMEPATH%/
    function Menu_onclick(value){
    var oVal;
    var oURL;
    oVal = value;
    if (oVal == "NA"){
    //do nothing
    else {
    oURL = "/scripts/ibank.dll?homepath=%HOMEPATH%&" + oVal;
    parent.main.window.location.href = oURL;

    This code is working fine for all links including the Who RU Settings
    in Safari 3.0.3, Firefox, and Netscape Navigator 9.0b3.

    This link is the one I'm having problems with in IE7 and Opera 9.23 --<li><a href="javascript:Menu_onclick('Func=MfaAdmin');">Who RU

    The MFA Admin code is out on another server. When I click the Who RU
    Settings link in IE7 and Opera 9.23 the Who RU Settings page is
    displayed. However once the Who RU Settings page is active you get a
    message in IE7 "Error on page" when any of the other links are

    IE is says it is a Permission denied error but I think it is something
    with the javascript. I have maximum security to both servers so I
    can't imagine it to be a permission problem and all pages from both
    servers are "https:" pages.

    Any ideas what could be causing this with IE7 and Opera? I would
    greatly appreciate any help.

    Sunshine, Sep 11, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.