I'm new to this website and not sure how it works and whether anybody would reply to my question or not, but worth a try, so will post my question here! :)

Basically I've a HTML page which contains some within different parts of the page and here is my code:

```
<html>
<head>
<title>Welcome to My 1st JavaScript Page</title>
</head>
<body>

<script type="text/javascript">
//
var parameter = document.location.search.replace("?", "").replace("=", "");

// IF NO PARAMETER
if (!document.location.search || !parameter) {
    document.write("No parameter is defined. Please either set ?pictures, ?videos or ?music");

// IF PARAMETER
} else {
    // IF GAMES
    if (parameter == "pictures") {
        // FOR EXAMPLE INCLUDE THE PICTURES.HTML

    // IF VIDEOS
    } else if (parameter == "videos") {
        // FOR EXAMPLE INCLUDE THE VIDEOS.HTML

    // IF MUSIC
    } else if (parameter == "music") {
        // FOR EXAMPLE INCLUDE THE MUSIC.HTML
    }

}
</script>

</body>
</html>

```

This page would load different things according to the URL parameter that I've set, so when different URL parameters is called, I want to load different external HTML pages within the same page, and don't want to use iframe and such!
Is this possible or not? Please have a look at my code above!

In PHP we use:

```
<?php
    include ("./includes/music.html");
?>

```

But I don't know how to do this in JavaScript! Could somebody please help me with this!

Thanks :)