View hyperlinks within a designated DIV container

I have a menu wrapped in a DIV element and I want to open the links from the menu in another DIV called TEST. So far, the only method I've found is using an iframe, but I'm looking for another solution, possibly with JavaScript (without using AJAX or PHP).

Thank you!

Best regards, Ronny

body { margin:0; background-color: #333333;}
    
    .wrapper{
    width: 960px; 
    margin: 0 auto; 
    position: relative;
        min-height: 100%;
        height: auto !important;
        height: 100%;
        /* background: url("ronny_logo.jpg"); */
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        z-index: 10;
    margin-top: 120px;
    }
    
    
    /* MENU */
    #main_menu{
        margin:0px;
    padding:0;
        height: 150px;
    /* width: 100%;      /* Breite vom Hauptmenü Container */
        padding: 0px 0;
        /*overflow: hidden; Remove this*/
    position: fixed;
    background-color: black;
        z-index: 2;
    }
    #main_menu li{
        list-style: none;
        float: left;
        line-height: 30px;
        margin-left: 10px;
        width: 130px;
        text-align: center;
        margin-top: 120px;
        position: relative;
    }
    #main_menu li a, #footer_menu li a {
        color: #FFFFFF;
        text-shadow: 0px 1px 1px #000;
        display: block;
        font-family: 'PT Sans', sans-serif;
        text-decoration: none;
        font-size: 12pt;
    }
    #main_menu .logo{
        background: none;
        width: 445px;
        margin: 0;
    }
    #main_menu li a:hover, #footer_menu li a:hover{
        text-decoration: underline;
    }
    #main_menu li .submenu{
        display: none;
        margin: 0;
        padding: 0;
        z-index: 10;
        position: absolute;
        left: 0;
        top:100%;
    }
    #main_menu li .submenu:hover{
        display: block;
    }
    #main_menu li a:hover + .submenu{
        display: block;
    }
    #main_menu li .submenu li{
        margin: 0;
        padding: 0;
    }
    #main_menu li .submenu li a{
        font-size: 9pt;
    }
    /* COLORS */
    .red, .red .submenu{ background-color: #ed3327; }
    .blue, .blue .submenu{ background-color: #9dbdd5; }
    .green, .green .submenu{ background-color: #6fb145; }
    .orange, .orange .submenu{ background-color: #f5832e; }
    .yellow, .yellow .submenu{ background-color: #f6ec35; }
    

    
    .TEST{
    width: 960px; 
    margin: 0 auto; 
        font-size: 19pt;
    color: #FF0000;
        z-index: 10;
    margin-top: 120px;
    }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    ...

https://i.sstatic.net/Yj4cp.jpg

Answer â„–1

One possible solution to your issue is utilizing jquery to import an external HTML file or sections of it into a specific div container. For more information on this topic, refer to the article provided below which has been addressed by @Giliweed

How do I load an HTML page in a <div> using JavaScript?

function load_home(){
document.getElementById("content").innerHTML='<object type="text/html" data="home.html" ></object>';
}

Cheers

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

How can you fetch data from a PHP file using AJAX before performing a header redirect?

I am currently in the process of adding more dynamism to my website. I have developed a forum from scratch and now I am integrating JavaScript into it. All the PHP backend work is complete. My next goal is to enable user login without having to refresh the ...

AngularJS ui-router in HTML5 mode is a powerful combination that allows

Hey, I'm looking to implement HTML5 mode in my project. Here's how my file structure looks: mypage.de/mysub I can only make changes within the "mysub" directory. So far, I've added the following into my index.html: <base href="/mysub/ ...

What is the best way to transition to a new page within my application with React Material UI Select?

I am looking to implement a feature where a new page is displayed based on the selection made in a Material UI Select component. Below is the code for SelectFoodChange.js : import * as React from 'react'; import InputLabel from '@mui/materi ...

What is the best way to scale a div proportionally within a bootstrap grid?

Despite spending hours reading numerous online sources, I am still struggling to fully grasp the CSS/HTML box model. Specifically, I am attempting to create sections with a ratio of 3:2, where 3 represents the width and 2 represents the height. https://i.s ...

Using setInterval to update the content of a Text Area continuously

I am currently working on a script that involves extracting a string from a textarea, breaking it down into an array using the delimiter "=====\n", and then displaying each element of the array in the textarea every 250ms. However, I have noticed that ...

Using Angular's $post method to communicate with PHP CodeIgniter for making requests and handling responses

I am having trouble sending data from Angular to Codeigniter using $post. Here is the JavaScript code I am using: $scope.user.first_name = 'first name'; $scope.user.last_name = 'last name'; $http({ method: 'POST', ...

Retrieve data from the redux store within the components nested under redux-simple-router

I am currently working on finding a way to access the redux store within a route in order to dispatch actions directly from that location. Below is an example of how my main Component is structured: class App extends Component { render() { return ( ...

Updating the state in a React array of objects can be achieved by checking if the specific id already exists in the array. If

In the scenario where the parent component receives an object from the child component via a callback function, I need to verify the existence of an object with a specific rowID. If it exists, the object should be updated with the passed value "val"; oth ...

Adjust the size of the Div and its content to fit the dimensions of

Currently, I have a div containing elements that are aligned perfectly. However, I need to scale this div to fit the viewport size. Using CSS scale is not an option as it does not support pixel values. https://i.stack.imgur.com/uThqx.png I am looking to ...

Tips for invoking an external JavaScript function using AJAX

I find myself a bit confused. In my project, there is an external javascript file called Hierarchy.js located in the Scripts folder. This file contains several functions, one of which is KeySelected. I need to call this function in the OnClientItemSelected ...

Send the form embedded in an iframe to a separate window

I have a form embedded in an iframe, but I'm looking to open the submitted form in a new window. What would be the best way to achieve this? ...

Enhancing the appearance of a JSX component in React

I have a segment of code within my project that calculates a specific percentage and displays it on the dashboard. <text className="netProfit-circle-text" x="50%" y="50%" dy=".2em" textAnchor="middl ...

Retrieving data from a newly inserted document using Node JS and Mongoose

I've encountered a dilemma with my code: var newresult = "" oneDoc = { "adClientID": *randomID*, "adClientName": "abc", "adClientNameUPC": "ABC" } newdoc.push(oneDoc) await AdClient.create( ...

The URL provided for the Ajax HTTP request is not accurate

Consider the following JavaScript code: <script type="text/javascript" charset="utf-8> function goForLogin() { var xmlhttp; xmlhttp=new XMLHttpRequest(); xmlhttp.open("POST","/account/login",true); xmlhttp.s ...

Tips for implementing a "read more" feature for lengthy descriptions in Django?

In the Django platform using Python, I am working on displaying results in a template file with a large description. I am seeking guidance on how to implement a "see more" option for descriptions that exceed 4 lines. Similar to Facebook's long status ...

Tips for sending data scraped from a website using Express

I have created a web crawler using Axios and am attempting to upload a file through Express. I currently have 10 different crawlers running with corresponding HTML form methods in Express. However, when I click the button, it downloads a blank file first ...

Creating a Custom FlatList Content Container with React Native

Is it possible to customize FlatList items with a custom component? I want to create a setup where my FlatList items are encapsulated within a custom component similar to the following: <ScrollView pt={8} px={16} pb={128} > <Card e ...

Looking to make changes to the updateActivePagerLink setting in JQuery Cycle?

I'm in the process of developing a basic slideshow with 3 images, and I am relatively new to Jquery and Cycle. The slideshow is functioning properly, and the 3 pager links are also functional. The only remaining task for me is to implement "activeSli ...

if the response from the AJAX request contains

I need to search for a specific word in the response text and then perform some actions based on that, but I am only getting a "true" response from PHP. How can I achieve this functionality? function checkCellNo() { var cellNumber = _("CellNo"). ...

Tips for implementing the handleClick method within a class component, as opposed to using the export default function syntax in

Hey there! I'm a beginner in React and I'm trying to incorporate Material UI into my project. I came across the documentation for the menu section like this, but I'm facing some challenges with writing my code. Specifically, I'm struggl ...