I badly want to know if there is a way in javascript to just a create a variable and increment it each time a particular visits the page. In other words, I want to use this as a counter for counting the visitors. Is this possible without the knowledge of scripting languages like php, perl etc..?
If so please give me very simple instructions as to how to perform this task as I am a thorough novice to javascript. I am just in the process of learning javascript now.
Also I would like to mention that when I googled for this requirement of mine there was a website which stated something about creating a deadframe to increment.
Here is what it said.
"""""""
Well, if you just want to display the counter and the counter simply
increases an integer in a text-file containing nothing else than that
integer, you could simply load it into a dead frame (width or height
set to 0, name set to counterFrame). Read the frames content with
parent.frames['counterFrame'].document.inner HTML and write it using
document.write( counter).
<script language="JavaS cript">
<!--
var counter = parent.frames['counterFrame'].document.inner HTML;
document.write( '<p>' + counter + '</p>');
//-->
</script>
"""""""""""
Please elaborate on this frames stuff. I do not know much about javascript-frame connection. Thank You for your assistance.
If so please give me very simple instructions as to how to perform this task as I am a thorough novice to javascript. I am just in the process of learning javascript now.
Also I would like to mention that when I googled for this requirement of mine there was a website which stated something about creating a deadframe to increment.
Here is what it said.
"""""""
Well, if you just want to display the counter and the counter simply
increases an integer in a text-file containing nothing else than that
integer, you could simply load it into a dead frame (width or height
set to 0, name set to counterFrame). Read the frames content with
parent.frames['counterFrame'].document.inner HTML and write it using
document.write( counter).
<script language="JavaS cript">
<!--
var counter = parent.frames['counterFrame'].document.inner HTML;
document.write( '<p>' + counter + '</p>');
//-->
</script>
"""""""""""
Please elaborate on this frames stuff. I do not know much about javascript-frame connection. Thank You for your assistance.
Comment