Open a URL in a New Tab Using JavaScript

This is straight javascript, no jQuery required 🙂

Here’s the function:

Here’s the call to the function:


Was this blog post helpful for you?

Support my blog and donate!

My blog is open to the public and will always be freely available. With your donation, we can help others learn, together.

Donate in Bitcoin: