Message box in a web page

chidambaram

Well-known member
Joined
Dec 27, 2007
Messages
62
Location
Chennai,India
Programming Experience
Beginner
hi,

I am working with one web site. When i click a button in that web site, it shows a message box contains information and yes, no, cancel buttons. I want to click any one button according to my requirement. How can i do this?

Thanks in advance and urgent plz...
 
you can use javascript to display the messagebox

the command is as below

alert("your instructions);

this code must be called during the onclick client side event.

Let me know if you have any problems.
 
Thanks for ur reply.

I have to click a button in the web page using code. I found that button and clicked that. It moves on to the next page. Again i want to click the button in a second page. I also clicked that button. Next page also opened.

I done upto this.

When i click that button, a message box will be displayed as "Do you want to edit or delete?" with yes, no and cancel buttons.

I want to click that yes button through my code?

How can i click that yes or no button in the message box?

Thanks in advance and urgent plz....
 
How can i click the ok button in the message box shown by internet explorer?

Please explain briefly...

How this javascript confirm method useful for me in this situation?
 
I don't think you've explained your problem very well. Is this a Windows Forms application and you are using a Web browser control, and in that control the Web page displays a dialogue on which you want to programmatically click a button?
 
Thanks for ur reply...

I am working with a site. I opened that site using internet explorer object.
In that site i want to enter a text in 2 text boxes and click a button.

I did this process. By clicking that button next page is opened for me.

In that next page i want to enter the text in text box and click the button.

I entered the text and when i click that button i got a message box from internet explorer as

Click Ok for edit the resource. Click cancel for canceling the process.

This message box contains ok and cancel button.

I want to click that ok button in the message box through my code.

How can i click that ok button?

Advance thanks and urgent plz...
 
Back
Top