User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 401,960 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,941 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 579 | Replies: 3 | Solved
Reply
Join Date: Feb 2008
Posts: 31
Reputation: nikk is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
nikk nikk is offline Offline
Light Poster

Opening a JSP in a new window?

  #1  
Mar 1st, 2008
In my website, the pages where i allow the users to update their details(such as - change password and update contact details), i want to open them in new window, rather than the current one.
Can you please tell me what should be the code for it?
What i know is only that - the code comes in <a href....> tag.
Pls. help.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,695
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 195
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Opening a JSP in a new window?

  #2  
Mar 3rd, 2008
That's an html question...
You need to set the target attribute of the a tag to a non-existent frame, that's all that's required.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Jan 2008
Location: Chennai
Posts: 10
Reputation: ahilan_23 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
ahilan_23's Avatar
ahilan_23 ahilan_23 is offline Offline
Newbie Poster

Re: Opening a JSP in a new window?

  #3  
Mar 4th, 2008
window.location=".jsp" target=""
Reply With Quote  
Join Date: Feb 2008
Posts: 31
Reputation: nikk is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
nikk nikk is offline Offline
Light Poster

Re: Opening a JSP in a new window?

  #4  
Mar 6th, 2008
Hey, thanks a lot, i got it. we have to write it as follows -
<a href="MyPage.jsp" target="_blank"></a>

Thanks for your replies.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 6:14 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC