Jump to content
solution

Just Reload Page Content Not Header Or Footer

Recommended Posts

I have designed a website and i am wanting the header and footer to stay on the page and not refresh when a page navigation link is selected on the navigation bar i just want the content to refresh. I have header which contains the header or and footer which contains the footer... Plz hw shld i go about it using html, css nd js. thanks

Edited by solution

Share this post


Link to post
Share on other sites

That's the modern way to do it. Years ago people would have used frames, but frames cause their own problems.

Share this post


Link to post
Share on other sites

@solution

I have design a website and I am wanting the header and the footer to stay on the page and not refresh when a page navigation link is selected on navigation bar.

This might be what you are looking for, Test if it is. Then, this is not ajax. This is just javascript function and event handler. Although ajax can be called with event handler as well. When you click navigation bar, javascript clear everything in section and return new data. The header, navbar, aside, article, footer were not changed. I created that page not to make it professional looking, but to test javascript event handler. Edited by Chikwado

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...