Hello,
I found a JavaScript code that makes a records displayed in a table clickable. In this case the JavaScript when clicked it goes to a different website (site i found the code at: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=312).
I like to modify part of the JavaScript code so that it takes me to a different page(file.php) with a variable.
This is what I have:
<tr onmouseover="ChangeColor(this, true);"
onmouseout="ChangeColor(this, false);"
onclick="DoNav('employee_details.php?test=<?php echo "$webtest"; ?>
target=_blank');">
Original code from website.
<tr onmouseover="ChangeColor(this, true);"
onmouseout="ChangeColor(this, false);"
onclick="DoNav('http://www.yahoo.com/');">
The one i modified works, but for some reason I don't feel its correct, I'm not using either href or http to access the employee_details.php. i tried adding hreff=\ or http:\ which just takes me to a page not found.
my JavaScript skills are 0 but i'm learning php so can someone have alook at this code and let me know the correct format.
Thanks
Robin