Build a personal Portfolio- query

Note that CodePen.io overrides the Window.open() function, so if you want to open windows using jQuery, you will need to target invisible anchor elements like this one: .

i didn’t get what this is ?? can someone explain it properly?

window.open("<url>")

is a browser api (function) that you can use it with javascript code to open a url on another tab or window (usually on response to on click events.

So the NOTE basically says that this funtion does not work on codepen source code due to some reasons internal to Codepen.

So in order to make a link appear on another window on click , you need to explicity add the attribute target = “_blank” on the link element.

eg. <a target="_blank">www.google.com</a>

1 Like