How to stop javascript alert popups from stealing tab focus?

I have two gmail accounts, and usually a lot of tabs open. So sometimes I log into my other gmail account while a tab somewhere else still is logged in to my other. Sooner or later, the gmail with the old login session notices this, and makes a little alert() popup telling me I've been logged out, a couple minutes after I checked my emails on the other account.
Now the problem is, that firefox because of this alert() popup instantly jumps to that tab, and I lose my place in my tab-jungle. This is very annoying. How do I prevent this inactive tab from stealing my focus/alert messages autofocusing tabs?

Hello,
Yes I know, but I don't want to do this. Is there any way to stop firefox from behaving this way?
Thanks

Similar Messages

  • How to show javascript alert popup after commandLink action?

    Hi,
    I'm building an ADF-based .jspx page. I have a commandLink whose action calls a method in my page's backing bean. I want to show a javascript alert popup when the commandLink is clicked and after the backing bean method has been called. The text displayed in the alert popup is dependent on whether the processing in the method was successful or not.
    I couldn't figure out how this could be done though. It doesn't seem I can use the onClick attribute on the commandLink because that gets called before my backing bean method gets called. From my backing bean method, is there some way to launch a javascript alert popup and show certain text in it based on what happened in the method?
    Thanks for any ideas.

    Hello and thank you for your reply,
    I am trying to combine dwr and ADF.
    When I use the following code to grasp the input value from the user
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueBinding expr = fc.getApplication().createValueBinding("#{bindings['LIMARXESPORTCODE_bindVariable2'].inputValue}");
    setLIMARXESPORTCODEbindVariable( expr.getValue(fc).toString() );
    in order to use it as a dynamic bind variable to the where clause of the following query:
    vo.setWhereClause("LIMARXESPORTCODE = :LIMARXESPORTCODE_bindVariable");
    vo.defineNamedWhereClauseParam("LIMARXESPORTCODE_bindVariable", null, null);
    vo.setNamedWhereClauseParam("LIMARXESPORTCODE_bindVariable", LIMARXESPORTCODEbindVariable );
    executeAndShowResults(vo);
    in the backing bean java code. All I get as an output from a javascript alert window is null.
    However, when the bean member variable LIMARXESPORTCODEbindVariable has a
    hard coded, static value i.e. LIMARXESPORTCODEbindVariable = 111; and the first code snippet is commented out, everything works just fine!
    Any hint is welcome,
    T I A.

  • How to stop an alert popup

    Once related to sorting my bookmarks, which does not happen as it did.
    An alert. TypeError: PlacesUtils.nodellsLivingmark
    Container is not a function
    Pops up constantly

    There is a updated version here with that part of the code commented out:
    *http://daniel-lange.com/archives/71-SyncPlaces,-SortPlaces-...-preserving-these-and-other-excellent-Firefox-add-ons.html

  • How to stop safari on iPad from opening tabs

    When browsing, Safari opens new tabs unexpectedly when I do not want a new tab.  I end up with many tabs, often more than a dozen, open unnecessarily.
    Is there a way to control or stop Safari from opening volumes of tabs?  Under what conditions does it open new tabs?

    Sorry, you can't. Tabs came with iOS5 I believe. Best you can do is manage them and close extras as they pop up.

  • How to stop mailng alerts in OEM ?

    Hi,
    in OEM 10g GRID How to stop mailng alerts in OEM ?
    Thank you.

    I never excluded explicitly 'english' from the list, so I don't know what will happen doing this. But by default on a non-english server (that's at least my experience) you ever have preselected 'english' and your native language (in my case 'german'). I guess it's the same for OP, of course 'french' instead of 'german'. So he/she should change the browser default language and see what happens. If language remains 'french', no english components exist.
    Werner

  • STOP iTunes and iPhoto from stealing focus...

    I was curious if there is anyway to stop iTunes and iPhoto from stealing focus when I plug in my iPhone. I do not have pictures to sync, yet iPhoto still popos up. Not only that, when it finishes loading, it steals focus, so if I am working on something else, now all my mouse commands and keyboard stokes are all in iTunes.
    - Is there anyway to stop iTunes from stealing focus? To just have it pop-up in the background and bounce for all I care, just not steal focus.
    Thanks!

    I already have iTunes configured so it doesn't open up when I plug my iPod touch in. What I don't like is when it steals focus after it's done syncing. Programs on Windows are supposed to "play nice" and not steal focus. They can request focus and flash the taskbar button, but that's it. So, if anyone knows how to prevent iTunes on Windows from stealing focus, I'd really appreciate it.

  • Not able to display javascript alert message from within a pl/sql block

    Hello,
    Can anyone please help me out with this issue. I wanted to display an javascript alert message from within a pl/sql block for an update button. Below is sample code which i am using. P1_ITEM is my hidden item on the report.
    begin
    if :P1_ITEM IS NOT NULL then
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
    HTP.p ('</script>');
    end if;
    end;
    and I have made this code to be executed conditionally when request = Expression1
    Expression1: SUBMIT
    The thing is I am not able to display an alert message when the update button is clicked.
    Can anyone please help me with this one.
    Thanks,
    Orton

    varad but I also have an update statement within that block for the update button something like this i want to achieve.
    begin
    if :P1_ITEM IS NULL THEN
    update sample_tbl
    set col1 =:APP_USER,
    col2 = 'Y'
    where pk_col = ---;
    commit;
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Successfully assigned an item!'');');
    HTP.p ('</script>');
    end if;
    if :P1_ITEM IS NOT NULL then
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
    HTP.p ('</script>');
    end if;
    end;
    thanks,
    Orton

  • How to stop the option key from changing tools when trying to subtract from a selection?

    How to stop the option key from changing my tools when I am trying to subtract from a selection?
    I'm running CS3 on Mac OS Leopard, and the automatic tool switching slows me down, but even preferences doesn't show a way to turn this off.
    Thanks for your help.

    With any marquee tool, JUST holding down the option key should not switch tools. You need to explain the problem much more carefully, It's completely impossible to tell from your description whats going wrong.
    automatic tool switching
    The only preference related to this, is to do with the SHIFT KEY - "use Shift key for tool switch".

  • How to stop the gray wheel from spinning after logging out

    how to stop the gray wheel from spinning after logging out?

    Frank ...
    Make sure to quit all open applications before logging out.
    Your proflie indicates your Mac has v10.7.1 installed.
    If that is the case, updating your system software will help as far as functionaly as well as security.
    Install the OS X Lion Update 10.7.5 (Client Combo)
    Then restart your Mac.
    message edited by:  cs

  • Anyone know how to stop the "activate" box from blocking usage of a perfectly legal copy of Ilisten? I want to help my dyslexic grandson and this box, including the activation code, keeps popping up, keeping me from using the software. I activated the pro

    Anyone know how to stop the "activate" box from blocking usage of a perfectly legal copy of Ilisten? I want to help my dyslexic grandson and this box, including the activation code, keeps popping up, keeping me from using the software. I activated the program and did a few profile building sessions, now it pops up each time I start the program, blocking me from using it. Help sure would be appreciated.
    Jay

    I looked at your post this morning and did not know enough to respond, other than to find out that links to iListen now go to newer, renamed software. Considering it's been nine hours with no response, I'm suspecting few people here have experience with that software. You could contact the current copmany that used to sell that package and see if they have any archived support info.
    BTW: please check you entry for "Mac OS" in your profile. It says iOS, which cannot run on an iMac. iOS is the system for phone and iPads but can't run on Mac computers. Do "About this Mac" from the Apple menu and see what it says about the OS version. Should look like this:
    If the "Processor" line says "Intel," you have a newer Mac than the old modles this forum covers; Intel iMac have their very own forum here:
    iMac (Intel)

  • How can i open the popup from java class

    Hi,
    Please tell me how can i open the popup from java class.
    I am using jdev 11.1.1.7.0
    I have used the below code which works fine in jdev 2.1 but it will have some errors in 11.1.1.7.0.
    Please tell me some way to do this in all jdev versions.
    Bean obj = (Bean)RequestContext.getCurrentInstance.getExternalContext.getPageFlowScope(“obj”);
    Code for hide pop-up
    FacesContext context = FacesContext.getCurrentInstance();
    String popupId = obj.getPopUpBind().getClientId()
    ExtendedRenderKitService service = Service.getRenderKitService(FacesContext.getCurrentInstance(),
    ExtendedRenderKitService.class);
    String hidePopup = "var popupObj=AdfPage.PAGE.findComponent('" + popupId +
    "'); popupObj.hide();";
    service.addScript(FacesContext.getCurrentInstance(), hidePopup);
    Code to Show pop-up
    StringBuffer showPopup = new StringBuffer();
    showPopup.append("var hints = new Object();");
    showPopup.append("var popupObj=AdfPage.PAGE.findComponent('" +
    obj.getPopUpBind().getClientId() + "');popupObj.show(hints);");
    service.addScript(FacesContext.getCurrentInstance(), showPopup.toString());
    Code need to be added in jsff pop tag
    binding="#{pageFlowScope.bean.popUpBind}
    Variable need to be added in Bean.java
    private RichPopup popUpBind;

    Hari,
    Since you're using a non-public build of JDeveloper, you should be using a non-public forum.
    John

  • How to stop Adobe Flash plugin from repeatedly crashing Firefox?

    How to stop Adobe Flash plugin from repeatedly crashing Firefox?

    yeah, having the same problem.
    Hulu is working on my internet explorer 8, tho... Interesting thing is that it detected I didn't have the 10.1 version of adobe flash player even though I just downloaded that on firefox. So MAYBE the problem is between firefox and adobe. Just a guess

  • Anyone any advice on how to stop my mail "activity" from continuously caching? is this a problem? I have had inbox issues recently that are not resolved yet but I am not sure if they are related.

    Anyone any advice on how to stop my mail "activity" from continuously caching? is this a problem? I have had inbox issues recently that are not resolved yet but I am not sure if they are related.

    Quit Mail. Force quit if necessary.
    Back up all data. That means you know you can restore the Mail database, no matter what happens.
    Triple-click the line below on this page to select it:
    ~/Library/Mail/V2/MailData/Envelope Index
    Copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens (command-V), then press return.
    A Finder window will open with a file selected. Move the selected file to the Desktop, leaving the window open. Other files in the folder may have names that begin with "Envelope Index". Move those files, if any, to the Trash.
    Log out and log back in. Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is corrupt and that Mail has to quit. Click OK.
    Test. If Mail now works as expected, you can delete the file you moved to the Desktop. Otherwise, post your results.

  • How to stop safari on ios7 from remembering history?

    How to stop safari on ios7 from remembering history?
    I hate to continually delete my history. Is there a way to stop it or set it to delete it on its own every day?

    Hey Bigchins!
    I have an article here that can address your question for you. The feature you are looking for is called private browsing, and it is explained here:
    To enable or disable Private Browsing, turn Private Browsing on or off.
    Private Browsing in iOS 5 protects private information and blocks some websites from tracking your behavior. Safari doesn't remember the pages you visit, your search history, or your AutoFill information.
    Note: While Private Browsing is enabled, the Safari bars appear black or dark instead of blue or gray.
    iOS: Safari web settings
    http://support.apple.com/kb/HT1677
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • How do I remove an app from "Updates" tab

    So here is the rub, I installed the free 1.69v of DropCopy on my MacBookPro by mistake. I am already a Multi-License user. How do I remove an app from "Updates" tab, in the App Store? When i tried to use it it reverts back to the free version.
    Thought I wold start here first then talk with 10base-t next.
    Ty, BC

    Hi,
    The v10.6.7 "combo" update addresses MAS bugs.  You can download and install from this link.
    http://support.apple.com/kb/DL1361
    Restart your Mac after the update is installed. It's ok to do this even if you are already running v10.6.7.

Maybe you are looking for

  • Problem with acrobat pro x

    Unable to open acrobat pro X I have a valid license number for CSS 5.5 design premium, the rest works fine just acrobat pro is not opening. It's asking for my license which I type, it appears like it accepted it but I get back to the same window aski

  • How to load data to a SQL Server 2000 from a text file ( fixed / delimited)

    I am a navie user to ODI, just installed some time back. And I wanted to load text data ina file ( fixed length/ delimited ) to SQL server 2000 database. Iam intrested to know the steps I need to take to achieve this. I mean for example first creatin

  • Extremely high fan speeds while using Skype

    I have a MAc book pro intel based, the fan goes on whirling at the hihgest possible speed even when there is about 30% of cpu usage i tried the SMC and the PRAM reset but it hasn't helped me at all. Does any one ave any idea how to fix this problem?

  • Oracle Workflow Email Notifications

    Hi, I have created a custom workflow and role(using user management). The notification_preference for this role is defaulting to QUERY. From what I have understood is that when the notification_preference is set to 'QUERY' the users in the role recei

  • Any one tell me the web site where i can get only ABAP HR FAQ

    I am searching in net and i am getting only ABAP faq's and i am not getting specific ABAP HR faq's.Could any one tell me where i can get only ABAP HR faq's Thanks Prasanth