Target

P

phill.luckhurst

Where do I add target = '_blank' to this code for field_2?

{
echo "var point = new GLatLng(" . $row['field_5'] . "," .
$row['field_4'] . ");\n";
echo "var marker = createMarker(point, '" .
addslashes($row['field_1']) . "<br /><a href=\"" . $row['field_2'] . "
\">". $row['field_2'] ."</a><br .>" . $row['field_3'] . "',4);\n";
echo "map.addOverlay(marker);\n";
echo "\n";
}
 
E

Evertjan.

(e-mail address removed) wrote on 18 jun 2007 in
comp.lang.javascript:
Where do I add target = '_blank' to this code for field_2?

{
echo "var point = new GLatLng(" . $row['field_5'] . "," .
$row['field_4'] . ");\n";
echo "var marker = createMarker(point, '" .
addslashes($row['field_1']) . "<br /><a href=\"" . $row['field_2'] . "
\">". $row['field_2'] ."</a><br .>" . $row['field_3'] . "',4);\n";
echo "map.addOverlay(marker);\n";
echo "\n";
}

This is NOT javascript.

If you show the resulting html + javascript code
by view sourcing on the browser, we could perhaps help.

target = '_blank' is not javascript either,
but htm to <a ... > or <form ... >

Are you sure this is the right NG for your Q?
 
S

scripts.contact

Where do I add target = '_blank' to this code for field_2?

{
echo "var point = new GLatLng(" . $row['field_5'] . "," .
$row['field_4'] . ");\n";
echo "var marker = createMarker(point, '" .
addslashes($row['field_1']) . "<br /><a href=\"" . $row['field_2'] . "
\">". $row['field_2'] ."</a><br .>" . $row['field_3'] . "',4);\n";
echo "map.addOverlay(marker);\n";
echo "\n";}

{
echo "var point=new GLatLng(" . $row['field_5'] . "," .
$row['field_4'] . ");\n";
echo "var marker = createMarker(point, '" .
addslashes($row['field_1']) . "<br /><a target=\"_blank\" href=\"" .
$row['field_2'] . "
\">". $row['field_2'] ."</a><br .>" . $row['field_3'] . "',4);\n";
echo "map.addOverlay(marker);\n";
echo "\n";
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top