location.href javascript in asp.net
-
Does anyone know how to link to other page using this code?once the 'OK' is clicked(the pop up javascript message) so it will redirect to new page.. tq~~ mijan
Are you using a javascript confirm? function askQuestion(){ var answer = confirm("Question?"); if (answer== true) // they pressed ok { window.location = "http://yoursite/thepage.htm"; } }
-
Are you using a javascript confirm? function askQuestion(){ var answer = confirm("Question?"); if (answer== true) // they pressed ok { window.location = "http://yoursite/thepage.htm"; } }
Basically I have this code: Dim strMessage As String strMessage = "Click OK to save" Dim strScript As String = "" strScript += "alert(""" & strMessage & """);" strScript += "" In this code,the message box will comes out carrying the "Click OK to save".After we clicked the OK, it should redirect to another page. Where should the code be put? :~ mijan