I've had a bash using pure Javascript
:
Code:
<html>
<head>
<script language="JavaScript">
var numberoftimes = 3;
var count = 0;
function repeattext() {
document.body.innerHTML = document.body.innerHTML + "Whatever" + "<br>";
count++;
if (count < numberoftimes)
{
setTimeout("repeattext()", 1000);
}
}
</script>
</head>
<body onLoad="repeattext()">
</body>
</html>
If you wanted to use some feature of PHP though (like its MySql functions), its easy.. you can just put <?php somecommands ?> and echo what you want to be displayed. If you want it inside HTML, just do something like...
Code:
<input type="text" value="<?php echo($_SERVER['PHP_SELF']); ?>">
But if you want it in Javascript, you need something like:
Code:
document.body.innerHTML = document.body.innerHTML + "<?php echo($_SERVER['PHP_SELF']); ?>" + "<br>";
HTH