0

I want to click on a button in a popup using javascript. When i search it with internet it only shows how to minimize. Is anyone know how to do it?

Thanks in dvance.

Balaji Kondalrayal
  • 1,743
  • 3
  • 19
  • 38

2 Answers2

1

As the Pop up window is added dynamically you can use a delegate for that

$('body').on('click',"#buttonid", function(){
//write code here
})
1

No you can not click on a Windows dialog button via pure Javascript.

Barry Staes
  • 3,890
  • 4
  • 24
  • 30