Jump to content

why this does not work? innerHTML


corillo181

Recommended Posts

hai friend,

this will solve ur problem

and this is a good forum by the way.

 

<html >

<head>

<script language="javascript">

function thank()

{

document.getElementById('t').innerHTML = 'Thank you';

}

</script>

</head>

<body onload="thank();">

<span id="t"></span>

</body>

</html>

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.