|
Joined: Feb 2002
Posts: 1,759
Addict
|
Addict
Joined: Feb 2002
Posts: 1,759 |
Ok, this is a question and not a tip, if someone provides the answer, then it will be a tip  Anyway, I know how to make a link open up to a new window using _blank. But rather than the new window just being the default size, how do I specify a size? I know this is done on a million sites since most of the popups you receive are done this way. can it be done in HTML or do you need javascript or something to accomplish this?
|
|
|
|
Joined: May 1999
Posts: 1,715
Addict
|
Addict
Joined: May 1999
Posts: 1,715 |
Can't be done with just html unfortunately. This is how it is done with javascript: <br /> <script language="javascript"><br /> function openNewWindow(url) {<br /> window.open(url,'newPage','scrollbars=no,resizable=no,width=400,height=400');<br /> }<br /> </script><br /><br /> <a href="javascript:openNewWindow('newpage.html');">Open new window at 400 x 400</a><br />
|
|
|
|
Joined: Feb 2002
Posts: 1,759
Addict
|
Addict
Joined: Feb 2002
Posts: 1,759 |
excellent, that is what I was looking for  Thanks.
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
Here's another way to do it. <br /><a href="javascript: void(0)" onclick="window.open('https://ubbdev.com/forum/pals/shoutdisplaypal.php','shoutboxpal','width=200,height=400,top=100,left=150,screenX=1,screenY=1,scrollbars=yes,resizable=yes');">Shout Box</a><br /> As you can see, I pilfered that from the IIP page. I test it in both a .php file and a .html file. So that is another way to do it.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|