Skip to content
Advertisement

How to open a text in the same html page by not creating a same page?

For example, when I open a topic, it would open in the same html page, not redirect to another address: http://web.archive.org/web/20090409012115/http://www.europeangoldfinch.net/home.htm#

I want to make it exactly like this (clicking on a topic). I downloaded the source files from web archive, but when I click on topic nothing opens up even though the topic text is in that html code.

This is exactly what I want to do: https://errorsea.com/how-to-change-text-onclick-event-javascript/#Syntax

EDIT: Thanks everyone for the help, I figured it out, I downloaded a website from web.archive.org, and it didn’t work well, but I managed to get it working with the javascript included with the website.

Code:

JavaScript

Advertisement

Answer

I really don’t understand want you actually want but from the look of things, if I’m correct you want to use a #URL system in your page. So I assume you want the page viewport to be on blog0 div when the user clicks on

JavaScript

if that is the case then you can this instead:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement