Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Opening a new browser window


Message #1 by "Chris Ullman (List moderator)" <chrisu@w...> on Fri, 5 May 2000 13:21:46
I am guessing that the problem lies somewhere in your JavaScript code.  
However as you did not include this in your code example I can't be 
certain.
I've tested your code with some simple JavaScript functions (shown below) 
to fill in for the missing code.  Using this, the first two links on the 
page open in the same new window, as was wanted.  I'm assuming your 
openWin() code is a little more complex than mine, and that is where the 
problem is.

Hope this at least a little helpful.

Trevor
------------

function openWin(url, name)
{
  // just open a new window
  window.open(url, name);
}

function turnArrowOn()
{
  // Do nothing
}

function turnArrowOff()
{
  // Do nothing
}

  Return to Index