Jump to content

How To Create Tabs


Kevin H

Recommended Posts

Hi all,

I am trying to work with tabs and using the How to Create Tabs page on the w3 site below. I am unclear on one part. In the HTML code, what is the event parameter referring to in the onclick function. I've copied on of the relevant lines below. If someone could elaborate further it would be much appreciated. 

<button class="tablinks" onclick="openCity(event, 'London')">London</button>

https://www.w3schools.com/howto/howto_js_tabs.asp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...