| Author |
Open pop-up from the menu
|
|
|
| I know how I can add a page, label or url to my portal structure.
What I don't know is how to add a url that opens in a pop-up window *without* the current portal page changing.
I've tried to add the url: "javascript:window.open(...)" but this opens a second browser window before opening the pop-up window.
Any ideas?
| |
|
| Well, my own solution so far is to add a page with a FileServer- or JSPServer- portlet, and add this javascript to the displayed page's window.onload event:
- window.open(...)
- history.go(-1)
But it bothers me that the user sees the jump to an empty page and back again.
| |
|
| I did this once by adding a standard JavaScript openWindow function in my theme. Then for the url, I just called the function passing the url to open the new window similar to what you tried. However it seems that you don't get the extra window if you cal
l the function on the page opposed to putting it all in the url.
Brian
|
|
|
|