f



Web-page that *BOTH* changes current page + displays a Pop-up page from JavaScript

I'm having trouble accomplishing the subject task in an HTML
JavaScript.

When I initially spec'd the function, I envisioned JavaScript source
with the following flow:

 1) Create pop-up window via popupWindow = window.open(...)
 2) Change current page via window.location.replace(URL)
 3) Change focus to put pop-up window back on top via popupWindow.focus
()

I did not anticipate that my JavaScript would terminate upon the
completion of the method in #2 above. As a result, I have created a
pop-down window, hidden behind the new page.

Is there a methodology I can use to accomplish the desired task?

Thanks in advance for your time and consideration.


John L.
0
John
5/15/2009 5:53:55 PM
comp.authoring.html 7078 articles. 0 followers. Post Follow

2 Replies
909 Views

Similar Articles

[PageSpeed] 30

Gazing into my crystal ball I observed "John L." <lashlaru83@juno.com> 
writing in news:1d3c7bc9-d178-4faf-87c1-e49e09f2cdc8
@z7g2000vbh.googlegroups.com:

> I'm having trouble accomplishing the subject task in an HTML
> JavaScript.
> 
> When I initially spec'd the function, I envisioned JavaScript source
> with the following flow:
> 
>  1) Create pop-up window via popupWindow = window.open(...)
>  2) Change current page via window.location.replace(URL)
>  3) Change focus to put pop-up window back on top via popupWindow.focus
> ()
> 
> I did not anticipate that my JavaScript would terminate upon the
> completion of the method in #2 above. As a result, I have created a
> pop-down window, hidden behind the new page.
> 
> Is there a methodology I can use to accomplish the desired task?
> 
> Thanks in advance for your time and consideration.
> 
> 
> John L.
> 

This is an HTML authoring group.  You would have better luck in a 
javascript group, comp.lang.javascript comes to mind.


-- 
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

0
Adrienne
5/15/2009 8:13:27 PM
John L. wrote:
> I'm having trouble accomplishing the subject task in an HTML
> JavaScript.

And we are all grateful for that!
0
Scott
5/15/2009 8:44:33 PM
Reply: