Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

specifying size of window

Status
Not open for further replies.

Benluke

Technical User
Apr 2, 2004
112
GB
Hi,

Is there a way to set the size of the window being opened from a text link?
e.g i click here = a new window opens that is 500px x 500px or to what i specify?

I can do it from a graphica link by
onClick="MM_openBrWindow('trainingformfa.htm','','width=350,height=476')">

thanks for any suggestions / help

Ben
 
<a href="#" onclick="MM_openBrWindow('trainingformfa.htm','my_win','width=500,height=500'); return false;">clicky!</a>

*cLFlaVA
----------------------------
Breaking the habit...
 
hi clflava,

thanks for the info, but i just tried it and it didn't work.

any ideas??

Ben
 
Could you post more of your code please?

*cLFlaVA
----------------------------
Breaking the habit...
 
Specifically: the function MM_openBrWindow.

This could be done like this:
Code:
<a href="#" 
   onclick="window.open('trainingformfa.htm','my_win','width=500,height=500');
            return false;">clicky!</a>
I assumed you wanted to use that MM_ function though.

*cLFlaVA
----------------------------
Breaking the habit...
 
SEE CODE BELOW.

Basically when a user clicks on the persons name a want a small window to open with info about that person.

thanks

Ben



<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="26"> <div align="center"><a class="coach" href="#"> John Haynes</a></div></td>
</tr>
<tr>
<td height="26"><div align="center"><a class="coach" href="#">Emma</a></div></td>
</tr>
<tr>
<td height="28"><div align="center"><a class="coach" href="#">Anthony</a></div></td>
</tr>
<tr>
<td height="26"><div align="center"><a class="coach" href="#">Annie</a></div></td>
</tr>
<tr>
<td height="27"><div align="center"><a class="coach" href="#">Yvonne
Morris</a></div></td>
</tr>
<tr>
<td height="25"><div align="center"><a class="coach" href="#">Tina
Sibley</a></div></td>
</tr>
<tr>
</table
 
Does my last post do the trick for you? If not, what does the function MM_openBrWindow look like?

*cLFlaVA
----------------------------
Breaking the habit...
 
it does the trick,

thanks a lot, well happy!!

you wouldn't know much about php and setting up a "subscribe to our Newsletter" page would you. Just so that they type in there name and email. They then receive a welcome email saying thanks for subscribing and their email address and name are stored in a file or database. Im just starting out on the php road and need to set this up.

Thanks againg for your help

really appreciate it

Ben
 
I know a lot about PHP. However, since this site's posts are used for future answer-seekers as well, it would be best if you posted that question in the PHP forum, located here: forum434.

Hope that helps.

*cLFlaVA
----------------------------
Breaking the habit...
 
clfava,

how do i make it include scroll bars if they are needed.

with a graphical link i would use scrollbars=yes but this does not work if i put it in the code you gave me

any ideas

thanks

ben
 

Yeah, it does:

Code:
<a href="#"
   onclick="window.open('trainingformfa.htm','my_win','width=500,height=500,scrollbars=yes');
            return false;">clicky!</a>

*cLFlaVA
----------------------------
Breaking the habit...
 
your right it does, i had a ' in the wrong place

thanks

ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top