I don't know much about javascript; need help with a function that will focus a popup window.
Link to site page = http://www.radglassco.com/product-options/
Plugin = TinyMCE Advanced.
Using advanced link feature to create common popup window for a dozen different links from one page. Same name used for the target window attribute. I thought it automatically would get the focus, but automatic focus doesn't happen.
I looked in the TinyMCE Advanced plugin files, specifically at "wp-content/plugins/tinymce-advanced/mce/advlink/js/advlink.js"
It has this statement:
var templates = {
"window.open" : "window.open('${url}','${target}','${options}')"
};
I know I have to add something to the header.php of the theme I'm using that will focus on the popup when subsequent links are selected.
What's the function?
You assistance is appreciated!