![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'd like to find out how to use the window.open() script in Fireworks MX. I have posted my question in the Fireworks forum but didn't get any replies. Since it's javascript, maybe someone could help me here...? I'd like to use the window.open() script to open a separate window, because I'd like to hide the menubar and specify the window size as well. So I specify "javascript:window.open(...)" as the HTML link for a hotspot. However, when I test it, I get 2 windows open. One of them is the actual window which was specified by the open() script and that contains what I need, but I have another window opens as well, which says "[object]". Why is this other window opens up? How can I get rid of that? Is there's something wrong with the way I specified the "window.open()" string in the link box. Can anyone tell me what is the correct way? |
#3
| |||
| |||
|
|
Better practice would be to avoid using the javascript: protocol, and to use the onClick event handler, as in: href="#" onclick="window.open(...);return false" |
#4
| |||
| |||
|
|
Lee wrote: Better practice would be to avoid using the javascript: protocol, and to use the onClick event handler, as in: href="#" onclick="window.open(...);return false" No, bester practise would be to make the href a useful URI ... |
#5
| |||
| |||
|
|
David Dorward said: Lee wrote: Better practice would be to avoid using the javascript: protocol, and to use the onClick event handler, as in: href="#" onclick="window.open(...);return false" No, bester practise would be to make the href a useful URI ... Normally, I would have said so, but the context seems to be an automated menu system, so JavaScript seems to be a requirement, anyway. |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
I'd like to find out how to use the window.open() script in Fireworks MX. I have posted my question in the Fireworks forum but didn't get any replies. Since it's javascript, maybe someone could help me here...? |
![]() |
| Thread Tools | |
| Display Modes | |
| |