|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
OPen new window from JS menu
I'm trying to open a new window from a Javascript menu.
This is the code. Any ideas on how I'd make the menu option open as a new window. var jm = new Menu(); var tmp4 = new Menu(); jm.add( tmp4 = new MenuItem ("Helpdesk", "http://gasHelpdesk", "") ); cheers in advance |
|
#2
|
||||
|
||||
|
What's that third, currently blank, parameter in the constructor for? Perhaps you can pass a window name or "_blank" there. Without seeing the code for the MenuItem constructor, I couldn't say for sure, though.
|
|
#3
|
|||
|
|||
|
You can place an icon in the third parameter if need be
cheers |
|
#4
|
||||
|
||||
|
Looks like you'll need to modify the MenuItem class, adding either a target parameter or an "extra" parameter that'll let you specify things like onclick events, etc.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > OPen new window from JS menu |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|