I am using the MM_goToURL() function which I borrowed from Macromedia Dreamweaver to send HTTP requests to specific URLs on the server. Below is the code for the function, it is
I have done some research, I figured that the domain name forwarding and masking causes the site to be in a html frame, thereby disabling the JavaScript link from working.
This is the source code to the hosted site on my domain name:
<html>
<head>
<title>Royalseeds </title>
<META name="description" content="Royalseeds MPCS Limited"><META name="keywords" content="Royalseeds, Frozen Foods, Cool Room">
</head>
<frameset rows="100%,*" border="0">
<frame src="http://www.optdesolver.com/RoyalSeedsMPCS/statistics_servlet.mpcs" frameborder="0" />
<frame frameborder="0" noresize />
</frameset>
<!-- pageok -->
<!-- 03 -->
<!-- -->
</html>
The code above prevents the JavaScript from loading.
Solution: I will disable the masking but allow forwarding.