Here is the senario.

I have some buttons at the bottom of the page and I
have function that when a button is clicked it will
redirect using window.location.href to the correct
page.

When I click a button the first time to thinks and
thinks and thinks.  However, if right after I click
the button I click it again quickly it immediately
goes to the intended page.

Does any one know why this is? Any ideas.

The Code for the function and the buttons is below.


---Michael

function clickme(pstrWhichSelect, pstrWhatService) {
                switch (pstrWhichSelect) {
                        case 'newdate':
                                window.location.href =
'UserViewServiceBasedReportsMenu.asp';
                                break;
                        case 'return':
                                window.location.href =
'UserViewServiceBasedReportsMenu.asp';
                                break;
                        default:
                                window.location.href = 'UserMainMenu.asp';
                                break;
                }
                
                return true;
        } //end function

<TR>
    <TD ALIGN="center"><INPUT ID="button0"
NAME="button0" TYPE="button"
onClick="clickme('newdate', '-1');" VALUE="Select a
New Date Range" WIDTH='342' STYLE='WIDTH: 342px'></TD>
</TR>
<TR>
    <TD ALIGN="center"><INPUT ID="button1"
NAME="button1" TYPE="button"
onClick="clickme('return', '-1');" VALUE="Return to
Client Reports Menu" WIDTH='342' STYLE='WIDTH:
342px'></TD>
</TR>
<TR>
    <TD ALIGN="center"><INPUT ID="button1"
NAME="button1" TYPE="button" onClick="clickme('main',
'-1');" VALUE="Return to Main Menu" WIDTH='342'
STYLE='WIDTH: 342px'></TD>
</TR>




__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to