I have a website script with a single javasript file which is loaded on the server and a outer function,defined inside that script with specific parameters that calls the script when the html file is loaded offline from my computer. I need to build a complete website online by coding this page. I have a domain name. I need to upload this newly coded file to the server.

Can anyone help me out to write a single page html code that will call the javascript function on loading the website online and automatically click on a particular row and column e.g row-2 column-7. By which the website will be redirected to a new website.

The raw script is below here:

<title>MY SITE</title>

<script type="text/javascript" src="http://example.com/example.js"></script>
<script type="text/javascript">

//The variables section

var x,y,z;

//The variables required to call the functon are declared and defined here

//Javascript inside function called


window.onload = function;

I need to modify this website script to build a html file on loading which a automatic click will take place on a particular place of the website say row-2 and column-7.

Anyone any help?