troubleshooting Question

pop up windows via JavaScript

Avatar of williecg
williecgFlag for United States of America asked on
Web Languages and StandardsJavaScriptASP.NET
11 Comments1 Solution307 ViewsLast Modified:
I have a net4 application that opens a pop up window via JavaScript

The pop up window is long and narrow and works well with the main window.

There is a button on the main window where the user can click a to get additional information.

That information is in the pop up.

The FIRST time the user clicks the button, the pop up appears on top of the main window.
(I do not close the pop up.)

The next time the user clicks the more info button, the pop up window does not appear on top of the main window.  It is behind the main window.

I want to pop up to always appear on top of the main window.

I have tried to set the focus to the pop up in JavaScript, but it does not seem to work.

I do not know JavaScript, and I am not a professional developer.  

Here is the java that I use.

    function poponload() {
       
       
        testwindow = window.open("<%= TextBox_i_re.text %>", "mywindow", "left=10,location=0,toolbar=0,menubar=0,status=0,resizable=0,scrollbars=yes,toolbar=0,width=600,height=3100");
        testwindow.moveTo(0, 0);
        openPreviewWindow('', 1);
        testwindow.focus();

           }
</script>

Thanks for the advice.

WCGee
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros