Skip to content
Loading
How to load html page into the main page ?

9 Replies

Know the answer? Post it — somebody with the same question will find it here.

  
  •     

    Load...

      
  • "GreenArea">  
  •   
  •   
  •   
  •   
  •   
  •  
    0
  • I followed your instructions but nothing is running? here is my code:
    Your Way Sachin Singh
    [CODE] 
    Example load html in main page
    $("#homeNav").click(function(){
    $("#GreenArea").load(home.html);
    });
    ...
    [/CODE]
     
     
    Your Way Ajay Gohil
    [CODE]  
    Example load html in main page
    ...
    [/CODE]
     
     
    Your Way Jignesh Kumar
    [CODE]  
    Example load html in main page
    ...
     [/CODE]
    +1
  • Sachin Singh
    1.     "container">    
    2.     "menu">    
    3.     "nav justify-content-center">    
    4.     "nav-item">"nav-link" href="Home.html" id="homeNav">Home
    5.     
    6.     "nav-item">"nav-link" href="#">ServiceForum
    7.     
    8.     "nav-item">"nav-link" href="#">Question
    9.     
    10.     "nav-item">"nav-link" href="#">Forum
    11.     
    12.     "nav-item">"nav-link" href="#">Contac
    13.     
    14.      
    15. GreenArea">
       
    16.     
        
  •         
  •   
  • $("#homeNav").click(function(){  
  •   
  • $("#GreenArea").load(home.html);  
  •   
  •   
  •   
  • }); 
  • 0
  • Hello,
     
    You can use jquery.May following code help you.
    1. "jquery.js">  
    2.   
    +2
  • Jignesh Kumar
    Hi,
     
    You can use below code,
     
    1.    
    2.      
    3.     "jquery.js">   
    4.        
    5.      
    6.   
    7.      
    8.      "includedContent">
      
  •      
  •   
  •  
    +2