By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,701 Members | 1,938 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,701 IT Pros & Developers. It's quick & easy.

Open a Window in java script

P: 20
Hi all,
I am doing a project in jsp..where i need to open a window when some one clicks my menu item..

my code is:

Expand|Select|Wrap|Line Numbers
  1. var menuItems = [
  3.    ["<B>:: </B>Home","admin_welcome.htm","",,,,,],   
  4.    ["<B>:: </B>Projects",,,,,,],    
  5.    ["|sample1","s1.jsp",,,,,,],
  6.    ["|sample2","s2.jsp",,,,,],
  7.    ["|sample3","s3.jsp",,,,,,],     
  8.    ["<B>:: </B>sample4","s4.jsp",,,,,,],   
  9.    ["<B>:: </B>Logout","LogOut.jsp","","","","_parent",,],  
  11. ];
what i need here is when user clicks sample4,then s4.jsp should open in new window..

plz help me here..
thanks in advance
Jan 23 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Use to open a new window.

menuItems[5][0] and menuItems[5][1] are the name and URL respectively.
Jan 23 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.