Jump to content

[SOLVED] basic problem, target='_blank' inside a function.


unistake

Recommended Posts

Hi all,

cant seem to find such a tutorial for this. I have a simple script:

 

<script>
function DoNav(theUrl)
  {
  document.location.href = theUrl;
  }
  </script>

and this inside a html table

<tr onclick=\"DoNav('$link');\" title='Click here'> 

The $link is an external website link. All I want is to open the link in a blank window - preferably a new tab. Please show me where to put target='_blank'.

 

Thanks

 

Tim

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.