/    Sign up×
Community /Pin to ProfileBookmark

Safari Browser Problem for Focus

  • 1. i have one href link,and i click on that href open the popup window after that minmized the popwindow.
  • 2.user click again href link,on that time open the pop window.

    its work in IE and FireFox … But not working in Safari …

    Example code :

    function openHelpChildWindow() {
    var childWindow=window.open(this.href,”VRLHelpWindow”,”toolbar=no, directories=no, status=no, location=no, resizable=yes, menubar=no, scrollbars=yes,screenX=50,screenY=50,top=50,left=50,width=750,height=550″);
    reloadChildWindow(childWindow);
    return false;
    }

    function reloadChildWindow(childWindow){
    if(childWindow != null){
    childWindow.focus();
    }
    }

    how will solve this problem for safari browser ? plz help me

    to post a comment
    JavaScript

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @toicontienApr 16.2008 — I think the pointer to the window object is getting lost somewhere. Instead of [B]var childWindow = [/B] try just [B]childWindow =[/B]

    That will make the childWindow variable a global variable, and any function should be able to access it.
    ×

    Success!

    Help @vijeen spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.2,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,
    )...