/    Sign up×
Community /Pin to ProfileBookmark

New Browser Window Woes

Newbie here so Hi to all…

I am setting up my own little website and I am having some trouble with opening a new browser window..specifically how to manipulate & control it upon opening.

Here is the code I am using…very simple…like me & my site:

[B]<P>
<a href =”http://www.mywebsite.com/pic1.jpg” target=”resource” >PIC 1
</a>
</p>
<a href =”http://www.mywebsite/pic2.jpg” target=”resource” >pic2</a>[/B]

I am using ‘resource’ as the target to open each successive user choice in the same window, so that the user doesn’t end up with 10 windows open.
So far, so good. It all works but I need to do a couple more things but I am not having success…

  • 1.

    I would like to position & size the new browser window and I cannot figure out how/where to place the features…ie;top, right, width, height, resizable…etc.

  • 2.

    I also want the new window to remain ‘on top’ until closed.

  • Since I don’t really know much about what I’m doing or if what I want to do is even possible at my level of expertise, I figured I would throw it out here to see if I am on the right track.

    Thanks in advance for any help/advice (other than to forget the whole thing!)

    to post a comment
    HTML

    3 Comments(s)

    Copy linkTweet thisAlerts:
    @pacerierAug 08.2006 — does this work? :
    [code=html]<a href="#" onclick="window.open('http://www.mywebsite.com/pic1.jpg', 'resource', 'height=200, width=200, resizable=no');">Pic 1</a>[/code]
    Copy linkTweet thisAlerts:
    @royceauthorAug 08.2006 — Yeah!

    Thank you so much...it actually works perfectly. I even experimented with replacing 'onclick' with 'onmouseover' and many new design posibilities have opened up for me.

    Now my problem is to keep the new window always on top. Is this possible? That way, it is not covered by the original window when the user goes to make another selection.
    ×

    Success!

    Help @royce 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.7,
    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,
    )...