SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: quicky
-
May 23, 2001, 18:05 #1
- 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
-
May 23, 2001, 18:16 #2
- 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>
Code:<A HREF="#" onClick="popwin();return false">Link</A>
-
May 23, 2001, 18:22 #3
- 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