Log in

View Full Version : hyperlink new window size?


atlambros83
04-02-2008, 02:22 PM
Hi everybody, is there a way to make it so that when someone clicks a link and a new window pops up the window is a certain size specified by you? how would I code that?

I've got this in my navbar so that when clicked it will guide the user to the teamspeak server.

<td class="vbmenu_control"><a href="teamspeak://66.228.124.197:8796">Team Speak</a></td></if>


What I would like to do is insert another code so that when clicked it also opens a new window that opens up this page http://www.optikal-illuzionz.com/forums/tsserver.htm but I would like it to open as a small window that just fits the text.

as always, any help would be greatly appreciated. thanks

MoT3rror
04-02-2008, 07:37 PM
<a href="http://www.javascript-coder.com/window-popup/javascript-window-open.phtml" target="_blank">http://www.javascript-coder.com/wind...dow-open.phtml</a>

atlambros83
04-03-2008, 03:21 AM
Thanks for the link, tried using what they listed but it doesn't seem to work in the navbar. :(

Dismounted
04-03-2008, 04:31 AM
TeamSpeak links directly open the TeamSpeak client, and not in a browser window, therefore, cannot be resized (with JS and the like).

atlambros83
04-03-2008, 04:39 AM
No I'm trying to have the link do two things, open into the team speak server and also open a new browser window to the page i specified. I'm not sure if it can be done, but that's what I'm trying to do.

Dismounted
04-03-2008, 05:48 AM
In that case, you'll need to craft JS to open a popup. Most popup codes will have options to change the size.

atlambros83
04-03-2008, 05:54 AM
thanks, guess I'll goolge java script popup codes then. :)