Thanks to visit codestin.com
Credit goes to github.com

Skip to content

magarenzo/ChangePageJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

46 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ChangePageJS πŸ“ƒ

Change page without reloading site

GIF of ChangePageJS in action

Using the Script

Use onclick event of a element to pass in id of <div> we want to display

<a onclick="changePage(event, 'skills');">Skills</a>

<div> being passed to ChangePageJS needs to have class="section"

<div id="skills" class="section"></div>

Sections we don't want displayed before clicking its corresponding link to show it should start with display: none; and we should display the first section we want showing, if any

.section { display: none; }
#about { display: block; }

Owner

Michael Agarenzo

About

Change page without reloading site. πŸ“ƒ

Resources

License

Stars

Watchers

Forks