Click to See Complete Forum and Search --> : table cells and links with javascripts


shun
07-05-2003, 03:56 PM
www.whythingssuck.com/redesigned.shtml (http://www.whythingssuck.com/redesigned.shtml)

mouse over the first button, now click on it, yeah i think you see the problem now, how do i fix it? i want that to become a link, not just place that text in the table cell. heres the function as it is now since i have it in a seperate file

function click1()
{

document.getElementById('cell1').innerText="<a href='mission.shtml'>mission</a>"

}


help me please?

Charles
07-05-2003, 04:10 PM
I think that you want to use "innerHTML" rather than "innerText". Your page will still suck, though, because 13% of users do not use JavaScript and because "innerHTML" and "innerText" are non-standard, though admitedly widely suported, methods.