Completely Hide frame in framesets using Javascript or Jquery

前端 未结 2 1106
难免孤独
难免孤独 2021-01-23 00:22

Please go thorough below HTML files code.
Here I am trying to use toggle function of jQuery. Here my toggle for \"content.HTML\" page is working perfectly.
I need to hid

2条回答
  •  盖世英雄少女心
    2021-01-23 01:21

    Here you have toggle button in content frame and want to hide menu frame onclick of toggle button.

    Problem is you cannot access javascript function present in parent from child frame, hence need to do some work-around like below :

    Add a event listener in parent and call toggle frame function (frame cannot be hide or show directly using display property of css, hence added two seperate function) :

    ........
    
           
        
        
    
        
        //....
        
    
        
        
        
    

    And now write onclick of button like below :

    
    

提交回复
热议问题