The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniWeb > OmniWeb Bug Reports
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
JavaScript bug: popup window doesn't come to the front Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
I'm developing a Web page that uses JavaScript to open a small popup window at the surfer's request.

Code:
var mypopup = window.open("popup.html","popup","width=200,height=200");
It's easy for the surfer to click in the main browser window and overlay an existing popup. Another attempt to open the popup would appear to fail because the window already exists. So I added a focus() to bring an existing window to the front:

Code:
mypopup.focus();
Unfortunately, that focus() call appears to be a no-op in OmniWeb 5.6 on my Mac Pro. It works fine in Safari 2.0.4 and Firefox 2.0.0.9 on Mac OS X 10.4.10 and Explorer 6 on WinXP.

Actually, Safari doesn't need the focus() because window.open brings an existing window to the front.

Before posting this note, I decided to test popup behavior on my iBook G4. OmniWeb 5.6 behaves just like Safari.

Now I wonder if the problem I'm having on my Mac Pro is due to the Intel CPU or a conflict with one of my numerous embellishments to Mac OS X. My iBook is running a more "vanilla" Mac OS X.

[submitted as formal feedback]

Last edited by Ward; 2007-11-09 at 10:28 AM.. Reason: fix typo
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem trying to get the perspective name of the front window jhncbrwn OmniFocus Extras 2 2011-08-16 11:12 PM
Javascript popup not working? bwcole OmniWeb Bug Reports 1 2009-05-26 08:54 AM
losing location of file in front window louabill OmniOutliner 3 for Mac 0 2007-12-07 10:08 AM
Tip: Global shortcut to popup OmniFocus window giorgio OmniFocus 1 for Mac 2 2007-07-22 05:07 PM
REALLY Odd Popup/Javascript Behavior gofast OmniWeb Bug Reports 0 2006-05-02 07:42 AM


All times are GMT -8. The time now is 05:38 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.