Well, you could, but you probably just want to have two sets of content in the same page, and switch between them. Example:
<html> <head> <script> function show(shown, hidden) { document.getElementById(shown).style.display='block'; document.getElementById(hidden).style.display='none'; return false; } </script> </head> <body> <div id="Page1"> Content of page 1 <a href="#" onclick="return show('Page2','Page1');">Show page 2</a> </div> <div id="Page2" style="display:none"> Content of page 2 <a href="#" onclick="return show('Page1','Page2');">Show page 1</a> </div> </body> </html>
Related Posts:
- Redirect from an HTML page
- What is ' and why does Google search replace it with apostrophe?
- Should I use tag for icons instead of ? [closed]
- Line break in HTML with ‘\n’
- Adding a favicon to a static HTML page
- What’s the difference between HTML ‘hidden’ and ‘aria-hidden’ attributes?
- How do I vertically align text in a div?
- How do I vertically center text with CSS?
- How do I vertically center text with CSS?
- What does do?
- What does enctype=’multipart/form-data’ mean?
- Link with target=”_blank” and rel=”noopener noreferrer” still vulnerable?
- What does do?
- How to make JavaScript execute after page load?
- Parse error: Syntax error, unexpected end of file in my PHP code
- How do I auto-resize an image to fit a ‘div’ container?
- Is there a minlength validation attribute in HTML5?
- Getting rid of bullet points from
- How to add hamburger menu in bootstrap
- How to change css property using javascript
- What is href=”#” and why is it used?
- Get the value in an input text box
- Is there a way to convert SWF to HTML5
- Should I use px or rem value units in my CSS?
- Flexbox: center horizontally and vertically
- What is the difference between id and class in CSS, and when should I use them?
- HTML img scaling
- When to use instead
?
- An invalid form control with name=” is not focusable
- How to call a PHP function on the click of a button
- Does bootstrap 4 have a built in horizontal divider?
- JavaScript function onhover in
- How can I set the image opacity for body background
- Section vs Article HTML5
- href=”tel:” and mobile numbers
- How to make a simple modal pop up form using jquery and html?
- Adding background image to div using CSS
- Align DIV’s to bottom or baseline
- Center a DIV horizontally and vertically
- Wrap text around bootstrap image
- CSS hover effect is not working on my code
- How do I style a dropdown with only CSS?
- Cross-reference (named anchor) in markdown
- Add image in title bar
- JavaScript: Get image dimensions
- What replaces cellpadding, cellspacing, valign, and align in HTML5 tables?
- HTML input – name vs. id
- How to add image that is on my computer to a site in css or html?
- How to use PHP inside css file
- jQuery checkbox event handling
- Setting a max character length in CSS
- How to use the “required” attribute with a “radio” input field
- Local Storage vs Cookies
- Redirect website after specified amount of time
- How to fix “insecure content was loaded over HTTPS, but requested an insecure resource”
- How to make div appear in front of another?
- PHP Include Nav-bar For Every Page Techniques?
- External CSS not working
- How to exclude particular class name in CSS selector?
- How to scroll to top of a div using jQuery?
- HTML/CSS–Creating a banner/header
- Change hover color on a button with Bootstrap customization
- Alternate table row color using CSS?
- Is there a float input type in HTML5?
- Is there a vr (vertical rule) in html?
- How to view an HTML file in the browser with Visual Studio Code
- How to create a hidden in JavaScript?
- How to make a DIV not wrap?
- CSS “and” selector – Can I select elements that have multiple classes?
- What is the meaning of ? (question mark) in a URL string?
- How do I programmatically set the value of a select box element using JavaScript?
- CSS: Background image and padding
- Accessing WordPress data via JSON gives HTML data for certain keys
- How to prevent pages from automatically adding line breaks?
- How to add a button that enables the user to insert a link in a textarea located in the front-end?
- Firefox CSS Animations Broke [closed]
- User-specific access to folders in WordPress site
- Showing special sigh (?) in blank space after compress html code
- How to remove ?wp-mce from page source?
- Inline style HTML attribute is being stripped from all elements of a post
- Unfamiliar HTML Properties in Avada and Divi Themes [closed]
- #text at the begging of every page, before the main content block
- Phantom strong tags in wordpress
- Convert bookmarks.html file into WP posts
- With wp_list_category put every existing category into an option tag
- Https and Http for iFrame
- Removing Unused WP SEO Codes display on html page [duplicate]
- Excerpt keep stripping tags
- What file is the tag located in Genesis default theme?
- Programming WordPress to send a custom-built form to specified email address
- Show preview of wordpress posts on external html sever
- Applying metatag to single page
- Where to find HTML to post Adsense Code
- An extra is appearing in my source code–how do I diagnose the source?
- how add class in containers
- Link opens a new website instead of my own
- how i can change wordpress post views?
- Configuration Options for embedded YouTube Videos
- Is it possible to read the ID of a post and then insert it into the html of the post?
- Minify HTML on specific page