Access child window elements from parent window using Javascript

后端 未结 1 1226
萌比男神i
萌比男神i 2021-01-13 01:31

I need to access child window elements from parent window. I have written the sample snippets below.

Parent HTML:





        
1条回答
  •  情歌与酒
    2021-01-13 01:57

    I feel this is because of some security. You can try this way instead:

    
    
        Parent
        
        
    
    
        
    Google
    Yahoo
    Bing

    
    
        Child
        
    
    
    
    
    
        

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