/    Sign up×
Community /Pin to ProfileBookmark

Popup window…

Hi,

I need to call (open) a popup window from a .bat file. I.e. I have created a .URL file (with the [url]http://.[/url]… link) which is called from the .bat file.

I visited the javascript generator to have the code for a popup browser window but that was meant to be called from another html page.

Is it possible to define a popup window which is displayed on its own, not called from another html page. The javacode from the generator is pasted below.

Thanks for hints on how to create a menu- and buttonless browser window from a .bat file

regards

bushtor

<!– TWO STEPS TO INSTALL POPUP WINDOW:

  • 1. Paste the first into the HEAD of your HTML document

  • 2. Use the code to open the popup page on your site –>
  • <!– STEP ONE: Copy this code into the HEAD of your HTML document –>

    <HEAD>

    <SCRIPT LANGUAGE=”JavaScript”>
    <!– Idea by: Nic Wolfe ([email protected]) –>
    <!– Web URL: [url]http://fineline.xs.mw[/url] –>

    <!– This script and many more are available free online at –>
    <!– The JavaScript Source!! [url]http://javascript.internet.com[/url] –>

    <!– Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval(“page” + id + ” = window.open(URL, ‘” + id + “‘, ‘toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=300,left = 500,top = 375’);”);
    }
    // End –>
    </script>

    <!– STEP TWO: Paste this onLoad event handler into the BODY tag –>

    <BODY onLoad=”javascript:popUp(‘test.html’)”>

    <!– Script Size: 0.73 KB –>

    to post a comment
    JavaScript

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @phpnoviceJan 29.2006 — You can open a browser window from a .bat file as follows:

    cmd /C explorer http://www.domain.com

    However, this would open a default browser window -- not a customized one. To the best of my knowledge, to open a customized browser window requires an HTML Application (hta). However, I don't know anything more than that. Perhaps, though, that will give you something of a start on your own research efforts.

    Cheers.
    ×

    Success!

    Help @bushtor 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.17,
    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: @nearjob,
    tipped: article
    amount: 1000 SATS,

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

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