<eventsource>
element to the document. After adding the element to the document, source attribute points to the URL provided, then HTTP connection sends the data with events.The URL points on a server side script that should be the PHP, PERL, or Python then it will send the data continuously. The code below demonstrates the web application.
[html]<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
/* Define event handling logic here */
</script>
</head>
<body>
<div id="sse">
<eventsource src="/cgi-bin/ticker.cgi" />
</div>
<div id="ticker">
<TIME>
</div>
</body>
</html>
[/html]