Basically, I have link on my page test.php page.
<a href="demo.php">click</a> <!-- test.php page -->
I want to call function on body onload event on demo.php page everytime but only when click on link above then it would not be called on page refresh.
<body onLoad="JavaScript:event(1,product,100);"> <!-- demo.php page -->
You can achieve this by using hashtags in the URL, your link HTML:
The demo.php javascript: