/    Sign up×
Community /Pin to ProfileBookmark

controlling the new window

i’d like to use javascript to do the following:

  • 1.

    open a new window (an external url, not part of my site)
    I know how to do this (window.open)

  • 2.

    check to see if the page has loaded

  • 3.

    Once the page is loaded, use javascript to populate some of the fields with preset information

  • 4.

    on some of the windows, i will need to “click” a button

  • is any of this possible with JS, and if so, how?
    (if not, anyone know of a way of doing this)…

    to post a comment
    JavaScript

    2 Comments(s)

    Copy linkTweet thisAlerts:
    @FangJul 16.2008 — Write the action and query directly to the child window:www.someSite.com/search.php?a=apple&b=banana
    If the receiving script blocks a call from a different domain or does not accept a GET, then you can not do it.
    Copy linkTweet thisAlerts:
    @irf2kauthorJul 17.2008 — If the receiving script blocks a call from a different domain or does not accept a GET, then you can not do it.[/QUOTE]

    ya, i found that out after trying a whole bunch of different methods

    fortunately, the script I want to run is on my LOCAL machine (to control an external site) so i can use HTAs

    For those interested in how it works, look up HTML Applications...basically you just code the html page normally but run it locally with an HTA extension (requires IE5+). This allows it to bypass any security that is normally in place when web browsing.
    ×

    Success!

    Help @irf2k 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 5.18,
    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: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

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

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...