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!

Howto create another instance of browser? 1

Status
Not open for further replies.

BlindPete

Programmer
Jul 5, 2000
711
US
I have a hyper link that opens another instance of the browser. But I can not seem to control the size of this new instance. Essentially this new instance behaves as a message box.


click on Notes link to see. I want to control the size of the new popup browser. Any ideas? -Pete[noevil]
 
<a href=&quot;#&quot; onclick='window.open(&quot;the_url_you_want_to_control&quot;, &quot;popup&quot;,&quot;width=130,height=190,scrollbars=no,menubar=no&quot;);'>what_you_want_the_link_to_say</a> ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Hmmm doesn't work for me. Is there some component, extension or service I need. Its an apache server. -Pete[noevil]
 
OK, copy and paste this into a php page and click th eresult, you should end up with a small window containg some (mildly innacurate) word clocks.

Hopefully from this you can just change the url, and sizes to get what you want. - this does work, I just tested it ;-)

<?php
echo &quot;<a href=\&quot;#\&quot; onclick='window.open(\&quot; \&quot;popup\&quot;,\&quot;width=130,height=190,scrollbars=no,menubar=no\&quot;);'>Here</a>&quot;;
?> ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Oh and please please stick some linebreaks in, those notes are awful to read [lol] ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
thanks fopr the help and Oh I agree on the line breaks... written by engineers.. can you tell? LOL

Anyhow I still get an error using your syntax. It says it is expecting a &quot;)&quot; here is the source after the page was loaded...

Your code appears just above the tables

<a href=&quot;#&quot; onclick='window.open(&quot; &quot;popup&quot;,&quot;width=130,height=190,scrollbars=no,menubar=no&quot;);'>Here</a>

Any other ideas? -Pete[noevil]
 
Yes, I always forget this bit, when posting url stuff on these boards look carefully after the &quot; and you get an unnecessary ;

<?php
echo &quot;<a href=\&quot;#\&quot; onclick='window.open(\&quot;<----it will appear there, \&quot;popup\&quot;,\&quot;width=130,height=190,scrollbars=no,menubar=no\&quot;);'>Here</a>&quot;;
?> ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
oh btw , remove it [lol] ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top