Jump to content

How do make target="_blank" open in New Page?


amitamberker

Recommended Posts

No, window.open is a function. You pass window.open the URL you want to open, which in this case is inside the href attribute that the existing code is already getting. https://developer.mo...DOM/window.open
Hi justsomeguy, I think (maybe) I understood a little bit now. So, it should be something like this?
if (imageinfo.$link){window.location=imageinfo.$link.attr('href')windowObjectReference = window.open("http://www.w3schools.com/",)}
Edited by creative1977
Link to comment
Share on other sites

window.open(imageinfo.$link.attr('href'))
Hi justsomeguy :):) We partially (98%) did it :) But how do I make it open from a New TAB instead if making it open from a New Web Browser? :)
Link to comment
Share on other sites

Those are browser settings, not things that can be changed through Javascript.
Okie justsomeguy, gotch you. Thanks a lot.
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...