justsomeguy Posted July 9, 2012 Share Posted July 9, 2012 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.mozilla.org/en/DOM/window.open Link to comment Share on other sites More sharing options...
amitamberker Posted July 9, 2012 Author Share Posted July 9, 2012 (edited) 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 July 9, 2012 by creative1977 Link to comment Share on other sites More sharing options...
justsomeguy Posted July 9, 2012 Share Posted July 9, 2012 window.open(imageinfo.$link.attr('href')) Link to comment Share on other sites More sharing options...
amitamberker Posted July 9, 2012 Author Share Posted July 9, 2012 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 More sharing options...
justsomeguy Posted July 9, 2012 Share Posted July 9, 2012 Those are browser settings, not things that can be changed through Javascript. Link to comment Share on other sites More sharing options...
amitamberker Posted July 9, 2012 Author Share Posted July 9, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now