Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

How do I make this open in a new window when clicked?

Have a local dumbed down user interface for a database.  When a user clicks the client's name, the link opens up the full blown database application.  Unfortunately, it opens in the same window thus replacing my 'dumb' interface.  How can I make it open the full blown application in a new web page?  

I need my form target to be "_SO" to drill into the database properly, so I can't use _blank.
I tried putting _blank as the target of <a>, but the result is it opens up my dumb interface in a new page (losing the currently displayed client information) while my original page is replaced with the full blown application.


nsv_cell1.innerHTML=" <form name='"+nsv_formname+"' action='https://smartoffice.client.com/cdsApp?trustedWindow=1&_pageno=3&Module=DeepLink&Object=Contact&Operation=View&Data="+nsv_contact_id+"&OBO=' method='POST' target='_SO'><input name='Office' type='hidden' value='"+nsv_nslon+"'/><input name='User' type='hidden' value='"+nsv_nslun+"'/><input name='Pwd' type='hidden' value='"+nsv_nslp+"'/><a href='#' onclick=nsf_sendUserDetails('"+nsv_formname+"')  ><b>"+nsv_nameInfo+"</b></a>"+nsv_extraInfo+"";

Open in new window

0
lovetr
Asked:
lovetr
  • 2
1 Solution
 
margajet24IT Business AnalystCommented:
0
 
lovetrAuthor Commented:
thx...but I can't seem to figure out where to place window.open to accomplish my goal.
0
 
margajet24IT Business AnalystCommented:
put it inside  "onclick" so that when the user clicks on the name, it will open a window instead of updating the current page
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now