problem integrating java window.open with VB

J

Jeff

....still new to VWeb .net 2005 wtih VB...

....having some problem integrating java script to open a second browser window with my VB code. The following line (in page-load)
properly opens a new IE window (when button1 is pushed) called, "NewWin" and places the content from "comment.aspx" into it.

button1.Attributes.Add("onclick", "window.open('comment.aspx','NewWin',width=550, height=450');")
....but I can't seem to get any code - java or VB - to do anything with the new window. e.g., like closing it or setting focus to it.
Info on the web suggests that this should be possible, but I can't get anything to work. Perhaps this has something to do with the
necessity to somehow declare "NewWin" so that it is accessible outside of the page load event?

Could someone point me in the right direction, or provide some code with instructions easy enough for a VB newcomer to understand.

Thanks

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top