Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2001
    Posts
    4,861

    Can someone tell me how to do this simple HTML thing?

    I have a list of boats on my page and there is a link called "specifications" next to each boat.

    When visitors click on my "specifications" link I want a new window to open up listing the sepcifications. I don't want this to be a full-sized window but just a small one. How do I do this again?


  2. #2
    Join Date
    Mar 2004
    Posts
    1,301
    http://www.skyzyx.com/scripts/centerwin.php#


    this link will be helpfull to you

  3. #3
    Join Date
    Aug 2002
    Location
    Superior, CO, USA
    Posts
    633
    A little bit of Javascript will help...

    In the <head> element:
    Code:
    <script language="JavaScript1.2">
    	var submitWindow = null;
    
    	function openWindow(destURL)
    	{
    		if (submitWindow == null || submitWindow.closed)
    			submitWindow = window.open(destURL, 'The Title',
                                                                              'width=123,
                                                                               height=456,
                                                                               scrollbars=yes, 
                                                                               resize=no');
    		else
    			submitWindow.focus();
    
    	}
    </script>

    Then where your link is:

    Code:
    <a onclick="openWindow('boatDesc.jsp?boatID=12345'); return false;" >More information</a>
    Or something similar.
    Last edited by stdunbar; 04-15-2004 at 11:17 PM.

  4. #4
    Join Date
    Aug 2001
    Posts
    4,861
    Thanks guys

    Actually I fiqured something else out that worked out better than the new window. I just ended up using a regular window... worked out better.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •