Hi Guys, I am stuck at one of this trick done in JS on PHP. I have been trying to figure out a solution for it but have been unsuccessful. When a user clicks on "View Code & Open Site", the new browser opens in a new tab in the background. the current tab stays as is. Can someone help me in figuring how this is done? http://www.promotionalcodes.org.uk/argos Help much appreciated. Thanks Dave
It uses a pop under. Usually something like // opens the new window var a = window.open('somepage','','window.open options') // blur the opened window a.blur() // return focus to this window (the opener) window.focus() You'll notice that this doesnt work quite right in firefox as firefox 3.6+ (4 and up) have disabled the use of focus, and various resize methods.