Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 04-07-2012, 03:27 PM   #1
Solid State Member
 
Join Date: Feb 2012
Location: United States
Posts: 15
Default Question on displaying HTML with JavaScript

I'm design a website for my company with the 960 grid system. That's probably not important.

What I want to do is have a navigation bar, and when you click on of the buttons, the HTML would change below the nav bar. So basically the page would be changing without actually changing the page.

Anyone know some code for this? I'm pretty new to programming and haven't gotten into JS yet.

Would something like this work:

Nav bar: - page 1 - page 2 - page 3 -

Pages 1 2 and 3 being buttons.

Would something like this work?
"if page 1" then variable = 1

Then....

If variable = 1, then display page 1 HTML.

I probably sounds stupid now, but would this be simple to do with JavaScript code?
Mike Anthony is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 07:59 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0