Hello there, I have any music site, and on one particular page surfers can visit song titles also it opens up any pop-up window that contain the lyrics.
While you click onto the principle window again, the actual pop-up then relegates to help underneath it, just in case you click around the same link once more, you get nothing – if you don’t closed the pop-up very first.
This is the popup computer code currently:
It’s important to focus() the eye-port. Try something like this (untested). Would be superior to slap the code in the function and call taht out of your link.
That works! Thanks Smoseley, really appreciate it. So you’re telling (I’m a j. script newbie, excuse me) I should squeeze bulk of which code inside < script> < /script> tags inside the head of that document
Someone on another forum gave me something like of which, which applied itself for the specific div the fact that links appeared within, but I had to lose the individual code for every link, which meant losing the unique sizing attributes for every one – any kind of idea how you’d bypass that
I got thinking something less complicated, like:
I’m sure you should try this
newwindow=window. open(url, ‘name’, ‘height=400, width=200’);
in the event that (window. focus) newwindow. focus()
That works like no bodies business, cheers smoseley, thanks too joomlads07.