# IE8 popup

**URL:** <https://www.ruby-forum.com/t/ie8-popup/177311>\
**Category:** Ruby\
**Created:** [October 14, 2009, 7:25pm UTC](https://www.ruby-forum.com/t/ie8-popup/177311 "2009-10-14T19:25:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [October 14, 2009, 7:25pm UTC](https://www.ruby-forum.com/t/ie8-popup/177311/1 "2009-10-14T19:25:09Z")

</div>

In IE7 I was able to use the following code to click onblur javascript  
popups:  
def handle\_onblur\_popup(ie, button, waitTime = 4)  
#used to handle certain JavaScript popups  
w = WinClicker.new  
longName = ie.dir.gsub("/" , “\” )  
shortName = w.getShortFileName(longName)  
w = nil  
f = IO.popen(“ruby #{shortName}\clickJSDialog.rb #{button}  
#{waitTime}”)  
end

but now in IE8 this is not working. I have noticed that the title on the  
popup window in IE8 has changed from ‘Windows Internet Explorer’ to  
‘Message from web page’ does anyone have any ideas as to what changes I  
need to make to ruby to get the new IE8 to work.

Thanks,  
-Eric
