Results 1 to 5 of 5

Thread: new resized window .... help!

  1. #1
    Join Date
    Jul 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default new resized window .... help!

    when someone clicks on a link, how can i mak it open up in a new, resized window without the forward or back buttons and address bar?

    i dont want a chromeless window (the one showed on dynamic drive)
    just a normal one like the popup adds would do, except i dont want it to be a popup, users click on each link to view the link on a new resized window

    all help will be greatly appreciated ....
    thanx a lot!

  2. #2
    Join Date
    Jul 2005
    Location
    cali
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    First, copy this script into the <HEAD> section of your page:


    Code:
    <SCRIPT TYPE="text/javascript">
    <!--
    function popup(mylink, windowname)
    {
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
       href=mylink;
    else
       href=mylink.href;
    window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
    return false;
    }
    //-->
    </SCRIPT>
    For now we'll skip the details of how the script works and move to the next step. The script above opens the popup, but something needs to run the script. Your situation is that the script is run when the user clicks on a link. A link like the following would run the script:


    Code:
    <A HREF="popupbasic.html" 
    onClick="return popup(this, 'notes')">my popup</A>
    And that should solve your problem... oh yeah edit it

  3. #3
    Join Date
    Jul 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh man ... thank you so much
    it works PERFECTLY

    awesome

  4. #4
    Join Date
    Jul 2005
    Location
    Reigate Uk
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That was a very useful topic for me, but as you can see I am only a beginner and I would like if it is possible to place some iconic links so I can see where to place my picture link and my topic link. Thank you very much
    This is a Very useful site

  5. #5
    Join Date
    Jul 2005
    Location
    cali
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No problem, any time.... steve, if you have another topic start a new thread, or just private message me and i will help you out to my ability.

    glad it works for you lakp

Bookmarks

Posting Permissions

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