View Full Version : New window

03-14-2005, 01:25 PM
New to this web building lark and was wanting to know how I make the new window that pops open when clicking on a linked box appear only with the image and close/hide/reszie buttons. Not so it opens with a complete new browser window?

Thanks for any help.


03-14-2005, 03:14 PM
Hiya Vosh.

Highlight the link that you want to work with and then go open the 'Tag' window pane. In there you will see 'Behaviours'. Hopefully under this you will then be able to find 'Open Browser Window' . This will then open up a window in which you can change the properties of the window that you want to open.

Hope that helps,

Jim Shady.

03-14-2005, 03:18 PM
Excellent Jim, thanks muchly!

03-14-2005, 06:39 PM
Right, I've got it working but it also opens a copy of the image in the main web browser? Any ideas anyone?

So close, but so far!

03-14-2005, 06:52 PM
Just add return(false) to your onClick attribute:onClick="your-existing-javascript; return(false);"

03-14-2005, 07:03 PM
Thanks for that, but, erm, where do I put the code?

Sorry, completely new to this. If it isn't already obvious :P

03-14-2005, 07:16 PM
I know handcoding abilities can vary :-)
1. Find the link in your code that triggers the pop-up window.
2. Inside the link tag (anchor <a>) there should be an onClick attribute
3. Add my code to the attribute like mentioned in earlier post.

If this doesn't make sense, post the code in question (not the whole page), then I know exactly where we are and what needs to be done.

03-14-2005, 07:25 PM
Sorry, can't seem to get it to work. Really appreciate your help! Also hope I've not put too much code in.

<td valign="top" bgcolor="#999999">../Images/Aviemore/AM1.gif (am1.htm)</td>

03-14-2005, 07:32 PM
seems to be some duplicate code in there. Anyways, change it to this:
<td valign="top" bgcolor="#999999"><a href="am1.htm" onClick="MM_openBrWindow('am1.htm','','scrollbars= yes,resizable=yes,width=470,height=620'); return(false);"><img src="../Images/Aviemore/AM1.gif" alt="" width="200" height="136" border="0"></a></td>

03-14-2005, 07:42 PM
You sir, are a star! Nice one, works a treat. Just got loads more to do now. Thanks again!

03-17-2005, 02:45 AM
No Problem :) Glad you got that one down at least. Let us know about the website once you're done.