Lunarpages Web Hosting Forum

Author Topic: Some code help please  (Read 1068 times)

Offline captinmorgn

  • Intergalactic Superstar
  • *****
  • Posts: 144
    • http://www.arcadenut.com
Some code help please
« on: July 10, 2005, 05:43:58 AM »
Hi, All!

I am using this code for a pop up window. I need to control the height and width of the width.

- <a location = "_blank" TITLE = "Click to Tell A Friend About This Website!" href=javascript:popUp2("<? echo $base_url;?>includes/tellafriend1.php?about=site")>Tell-A-Friend</a><BR>

Thanks for the help!!
Joe

Offline GMTurner

  • Berserker Poster
  • *****
  • Posts: 7479
    • Turner's Lounge
Re: Some code help please
« Reply #1 on: July 10, 2005, 08:00:51 AM »
I'm guessing that somewhere else in the page you have javascript code similar to:

Code: [Select]
<script language="javascript">
function popup2(page2open)
{ window.open ("page2open", "popup"," width=400, height=400, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0") }
</script>

Within that function you can control the details of the window that the page opens in. So basically, it's something you'll need to change in the javascript code rather than the php code...

Hope this helps...
The above information may or may not reflect current policy, opinions, or views since it was likely made almost 10 years ago.