.NET Framework Bookmark and Share   
 index > .NET Base Class Library > How to get the html element of the pop-up window?
 

How to get the html element of the pop-up window?

Guys,
I'm not sure whether it isthe suitable place to ask this question.

I'm .net programmer, and use the library microsoft.mshtml.dll to get the elements of the web page, we can get all html elements in the page, it's great. But sometimes, when the javascript "window.prompt" was executed in the page, then the new pop-upwindow will be show. Now at this time, I can't get the element of the pop-up window, any ideas for it? Thanks a lot.

Regards
Jian Hua
Jian Hua
for pop up window you should use this
<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
Regards
Varun Kumar
  • Proposed As Answer byvarun007 Tuesday, September 22, 2009 6:27 AM
  •  
varun007
You are not able to get element of popup window because the page of popup window is different. So you will have use popup page to get it's element

Gaurav Khanna
Khanna Gaurav

You can use google to search for other answers

Custom Search

More Threads

• Odd COM error when upgrading to 3.5
• How can I get the file list of my project reference?
• Unhandled Exception in vb.net
• EventLog text repeating 100 times when "%1" is part of data
• Highlight text in Word Document C# .net
• File Class versus FileInfo Class
• Render Control to string
• Question about Timer in VB 2005 Express
• Use DllImport locally?
• get all form names.. and their tags please