


But if the user disables javascript on his browser then the alert box wont be produced. I this case i tried displayin the msgbox with javascript alert which works fine. I understand that you can have pop ups at the server side and that is why i redirect the user to the homepage. But that gave an error "MsgBox Permission Denied". If you want to display a message to the user and need to know the user's reponse: Dim MyVar MyVar MsgBox ('Hello World', 65, 'MsgBox Example') ' MyVar contains either 1 or 2, depending on which button is clicked. You can use this along with other button constants (by putting a + sign in between the codes). The syntactical rules of VBScript are simple: Use parameter list when calling a (routine as a) Function. If both are the same then i have to display a msgbox to the user saying "please enter only characters".Initially i tried checking the word and displaying msgbox at server side. If you want to show a critical icon in your MsgBox, use the vbCritical constant. If you are in Native Jscript, then you what all suggestions have been posted on this thread should be able to help you. So while redirecting to the homepage i send a value(say 1 or 2) and on the homepage i have written a script that compares this value against the stored value. Hi, Are you writing Managed JScript or Native JScript. But before searching i check the search word against any sql/javascript injections and redirect the user to the home page where the new search could be started if find any injections. I have this application which pulls up the data related to the search word in the database.
