New page in New Window


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: New page in New Window

  1. #1
    Join Date
    Dec 2004
    Posts
    5

    New page in New Window

    Using Java, how can I redirect to a new page, which should appear in a new window?

  2. #2
    Join Date
    Jan 2005
    Location
    London
    Posts
    10
    We do this using code as follows in a jsp:

    where href is the url you want to go to

    <%
    out.print("<a href=\"javascript: w=window.open(\'"+href+"\', \'\',\'resizable=1,scrollbars=1,menubar=1,width=1000,height=660\'); w.focus()\"><b>Click here to launch new page+"</b></a>");
    %>

    However I have had problems with this keeping the session objects and have not found a way round keeping the same session or interacting with it. Hope that helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center