JavaScript function refuses to work on production server but works on local server

后端 未结 1 983
旧时难觅i
旧时难觅i 2021-01-29 16:19

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

1条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-29 16:43

    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:

     
    
      
       Royalseeds 
       
      
       
        
        
       
    
       
        
        
     
    

    The code above prevents the JavaScript from loading.

    Solution: I will disable the masking but allow forwarding.

    0 讨论(0)
提交回复
热议问题