Links opening in a new window - Page 2
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Links opening in a new window

  1. #11
    Member
    Join Date
    Jun 2002
    Posts
    41
    in the link.... onclick="return openawindow('awebpage.htm')

    this script will receive the address and open a window pointing to that address:

    function openawindow(a_URL){
    var newWindow;
    newWindow=window.open(a_URL,"mynewWindow","width=400",height="600");
    newWindow.focus();
    return false;
    }

    maybe thats what u were lookin for???
    know how to sell your wares. intrinsic quality isnt enough. not everyone bites at substance or looks for inner value. people like to follow the crowd;they go someplace because they see other people do so. uniqueness appeals both to the taste and to the intellect.

  2. #12
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,255
    Synaptic, I think that's a little more than he was looking for. He just said he needed to open a new window, not specify its size and etc.
    Chris Shepherd
    The Nelson-Shepherd cutoff: The point at which you realise someone is an idiot while trying to help them.
    \"Well as far as the spelling, I speak fluently both your native languages. Do you even can try spell mine ?\" -- Failed Insult
    Is your whole family retarded, or did they just catch it from you?

  3. #13
    Senior Member
    Join Date
    May 2002
    Posts
    147
    I used a demo of Dreamweaver to use some 'open in new window' function, but it didnt work when i pasted it into the other program.

    If i give the site, could someone type out the link that i need to enter?

    I need to link to http://www.lccc.co.uk (Lancashire County Cricket Club)

    thanks for your help.
    Mama always said, keep your virus definitions up to date.

  4. #14

  5. #15
    Old-Fogey:Addicts founder Terr's Avatar
    Join Date
    Aug 2001
    Location
    Seattle, WA
    Posts
    2,007
    Using Javascript to make new windows when simple target attributes will work is just... well... sort of like going out of your way to make life difficult for everyone.

    Popup-blockers will often block new javascript-made windows, but using the target attribute is more likely to keep your site 'workable' for people who hate popups.
    [HvC]Terr: L33T Technical Proficiency

  6. #16
    Junior Member
    Join Date
    May 2002
    Posts
    22
    try something that no other site would have like "_djhuk"
    Yo, sup

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •