I am currently working on the project that have 2 php files category.php and product.php.
In category.php file i put a link shown below.
<a href="product.php?cat=getcate" class="option">click here</a>
I have the following js function called on the body onload in the product.php page.
<body onload="font_select(1760,'No',239)">
When users click on the link then they will be redirect to product.php file where the body onload function is called.this function is working fine.
My question is i need to call this function only once when the user enter in product.php page.currently this function is called on page reload also.
How would i call this function only once ? Thanx In Advance.