onclick event to navigate to web page

ICW

Active member
Joined
Mar 27, 2006
Messages
25
Programming Experience
Beginner
Hi, The title say's it all really.

I have a ASP page with a button (button1) and I want users to click on it and have their browser navigate to www.mysite.com.
I need the code to go inside this handler.
-----------------------------------
function Button1_onclick() {

}
------------------------------------

THANKS
ICW
 
You mean you have a Html Input type Button with added onclick attribute? Then you can put this javascript in that function:
VB.NET:
[SIZE=2]
window.location =[/SIZE][SIZE=2][COLOR=#800000]"http://www.mysite.com/"
[/COLOR][/SIZE]
 
Back
Top