Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9021985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:23:21+00:00 2026-06-16T05:23:21+00:00

I am making a simple website that has a main text window with just

  • 0

I am making a simple website that has a main text window with just text on it. I would like to have buttons like Home, About, Contact etc. Now, I don’t want to make about.html, contact.html etc but I would rather just change the text without loading a new page? (so it feels more smooth).

So I made couple of paragraphs with text suited for each page (home, about etc.), now is there a way for what I’m asking you? To just change the paragraph on click of a button? Or is there any simple way of doing this without making the .html files for each page?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:23:23+00:00Added an answer on June 16, 2026 at 5:23 am

    I would agree with tvanfosson and recommend something like UI tabs or AJAX loading, but if you want to see a very rudimentary way you can do it with jQuery hide/show:

    http://jsfiddle.net/ADDPH/7/

    HTML

    <div id="container">
        <ul id="nav">
            <li><a href="#" class="index">Index</a></li>
            <li><a href="#" class="contact">Contact</a></li>
            <li><a href="#" class="other">Other</a></li>
        </ul>
        <div id="content">
            <div class="index hide">This is the home page.</div>
            <div class="contact hide" style="display:none;">This is my contact info.</div>
            <div class="other hide" style="display:none;">This is other stuff.</div>
        </div>
    </div>​
    

    jQuery

    $("#nav a").click( function() {
        $(".hide").hide(); // hide other divs, marked with hide class
        var c = $(this).attr('class').split(' ')[0]; //Get First Class
        $("#content ."+c).show(); //show anything inside content div with the class c (marked with a . to represent class)
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a simple website and am writing a gradle build script that
Background: I have a website that has been built with ASP.NET 2.0 and is
I´m making a simple website to display information from XML file that is created
Hay guys, im making a simple car sale website. I have a nice little
I am making simple grid like game ( grid is matrix 128x128) and matrix
I am making simple connection between two table - first one called users has
in making a simple cgi server for a course. To do that in some
I'm making a simple URL request with code like this: URL url = new
I am making a simple timer app. I have a uitable with multiple rows.
I'm making a simple mediaplayer app that downloads a song from a predetermined URL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.