Jump to content

[SOLVED] 'Erase' echo


neex1233

Recommended Posts

You can't do this with PHP alone, but with some JavaScript you can. Here's an example:

 

<script type="text/javascript">
window.onload = setTimeout('document.getElementById("something").innerHTML = ""', 1000);
</script>

<?php
echo '<span id="something">Some text here..</span>';
?>

Link to comment
https://forums.phpfreaks.com/topic/181203-solved-erase-echo/#findComment-955962
Share on other sites

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.