Sunday, September 27, 2015

javascript load new content

javascript load new content


javascript load new content

Posted: 26 Sep 2015 12:24 PM PDT




Mã HTML:

<html>

<head>
<title>write example</title>

<script type="text/javascript">

function newContent()
{
alert("load new content");
document.open();
document.write("<h1>Out with the old - in with the new!</h1>");
document.close();
}

</script>
</head>

<body onload="newContent();">
<p>Some original document content.</p>
</body>
</html>










----------
Nguồn www.yeuquangngai.net

No comments:

Post a Comment