SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: quicky

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Apr 2001
    Location
    BC, Canada
    Posts
    630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey.. Im hopeing I wont get flamed for possibly putting this in the wrong forum. (not sure to put in here or the the client side scripting forum) Cuz it uses some javascript, and some php

    However the problem is with the javascript, It would be great if someone could help me instead of just telling me to go post in the client side forum

    I need a script (javascript) that when a link is clicked, a new window pops up with a particular size (lets say 400x400) no scrolbars, no toolbars.. none of that junk.. just the blue title bar. When the window is opened it has to be directed to a particular page with a querystring
    lets say
    page.php?name=ak

    possible?


    thanx

  2. #2
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure. Put this code in the <head> section:

    Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function popwin() {
    myWindow = window.open("","windowRef","width=400,height=400,screenX=0,screenY=0,top=0,left=0,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
    myWindow.location.href = "http://__URL__";
    -->
    </SCRIPT>
    And this is the link:
    Code:
    <A HREF="#" onClick="popwin();return false">Link</A>
    Got that off one of the free JS sites, so it should work.

  3. #3
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just fyi, you don't need to put blah=no in your window.open code, because nothing is displayed by default. You just need to add things when you want them to be displayed.


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
  •