I have been building widget that accept user input and then once everything checked it will redirect user to the original web site.
However the best I achieved for now is that redirect will be opened in parent window rather then in new window.
Right now I am using:
$(parent.location).attr('href', asoRequestURL);
However I would like to open redirected page in new window rather then in parent windows.
Is it possible ? If yes then can you give me example?
Is there some horrible problem with
window.open(asoRequestURL);? I know it’s not technically jQuery, but so far as I can tell it would take a plugin to be able to do. Is it really worth downloading a plugin to replicate such simple functionality?EDIT: Here is all the information you could ever want on
window.open(); it may not be ultraclean jQuery smooth, but this isn’t really what jQuery is meant for.Here is a function to make it ultra-cool-smooth using objects for parameters and such:
And use it like: