What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Buttons and linking in same page


New member
Hey! I'm VERY new to html, css and javascript and I've mainly just jumped in at the deep end and been playing around seeing what I can get to work.
Was wondering if anyone can help me with this problem- I want to get click on a button and get it to link to another part of my page. something like this...

<button class="button button1" onclick="go to my id bit" >Click Me.</button>

<p id="here's my id bit"</p>

Sorry if this seems simple but I've tried different things and I can't get it to work. Like I said I'm VERY new to this so if your going to insult me for my lack of knowledge then save it for someone else.

Thanks in advance. (Oh, this is not for a website but just for fun on my desktop using my local files.)