www.webdeveloper.com
Results 1 to 2 of 2

Thread: Can't get page to open in new window! Help Please

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Posts
    1

    Can't get page to open in new window! Help Please

    I have been going over this code for hours now and can't figure out what the problem is. Below is the problem areas. I cut out the code that does not apply. Any ideas?

    Code:
    <!DOCTYPE HTML>
    <html>
    <head>
        <title>DRG Cycles Home Page</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="text.css" rel="stylesheet" type="text/css" />
    	<script type="text/javascript">
    	/* <![CDATA[ */
    	window.defaultStatus = "Welcome to DRG Cycles!";
    	
    	var bikeWindow;
    	function showBike(linkTarget) {
    		bikeWindow = window.open(linkTarget, "bikeInfo", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=620,height=575");
    	}
    	/* ]]> */
    	</script>
    
    </head>
    <body>
    
    <a href="cannondale.html" onclick="showBike(); return false;">
    <img src="images/cannondale.gif" style="border: 0px" width="80" alt="Image of a Cannondale bicycle" /></a>
                                                    </td>
                                                    <td>
    <a href="cannondale.html" onclick="showBike(); return false;"><span class="style7">Cannondale Moto Carbon 1</span>
                                                            <br />
    <strong><span class="style8">Price: $ <del>4,760</del> /</span> <span class="style9">
                                                                $ 4,125</span></strong> </a>
                                    
    </body>
    </html>

  2. #2
    Join Date
    Oct 2012
    Posts
    10
    This might be a dumb answer, but: target='_blank' ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles