Hi,

I read everywhere in the Internet ebverything about this problem here:

I want to open in the same window a link. It means I want just to change the page without open a new page. I tried now so many things, nothing worked.

I really need help, i am totaly frustrated. Here is my code at this moment:

This is the HTML-Part:

<input type="submit" value="Open the new page" name="chkSubmit" onclick="funSubmit()"></font></span></font></td>

... and this is the Javascript-Part:

function funSubmit()
{
window.location.href = 'order.php';
return false;
}

Whataver I tried, It does not open the page. Sometimes iI saw that it opens the page but goes direct back to the old page.

Please to everybody, I really need help!!!

Nice greetings
Frank

PS.: I changed it to the correct code. It was only here a mistake in the forum. The original code was as you see it now.

    And you really do have 'onclick="onclick="' in your HTML?

      Hi Weedpacket, it was just a paste&copy mistake. In the original code is it as I showe now. Still the same ...

        Hi,

        I get it now to work if I use on the end alert.

        If I use nothing then the page goes back to the original old page.

        does not work:

        function funSubmitToBuchung()
        {
        document.location.href='buchung.php';
        }

        works:

        function funSubmitToBuchung()
        {
        document.location.href='buchung.php';
        alert("ok");
        }

        What can I do to avoid alert?

        nice greetings
        Frank

          Hi Bradmasterx,

          unfortunately it does not work.

          Same problem

            Is there any chance to slow the action down?

            The problem seems that when i call the new webpage, that the old page get refreshed after this call in the function is done.

              Write a Reply...