Onclick open in new window without addressbar,home etc buttons etc


How do I open the below link in a new window without address bar and the back,home,search etc buttons

<a href="help.aspx" target=_blank>Help</a>
Who is Participating?
Pravin AsarConnect With a Mentor Principal Systems EngineerCommented:
Use following code ,

<a href="help.aspx"
 onclick="return OpenCenWindow(this.href, 'nw', 800, 600);">Help</a>
ZvonkoSystems architectCommented:
Like this:

<a href="help.aspx" target="help" onClick="window.open('','help','top=100,left=100,height=600,width=800');">Help</a>

Pravin AsarPrincipal Systems EngineerCommented:
This code, shows how to open centered window.

<title>Open Centered Window</title>

<script language=javascript>
function OpenCenWindow (url, winname, width, height) {
  var sw;
  var x = 0.5 *(window.screen.width - width);
  var y = 0.5 *(window.screen.height - height);
  var posStr = ", screenX=" + x + ", screenY=" + y;
  if (typeof (sw) != 'undefined')  {
  if (document.all) {
             posStr = ", left=" + x + ", top=" + y;
  var pStr = 'resizable, status=no,width=' + width + ', height=' + height +
             ', alwaysRaised=1, addressbar=no, titlebar=no, toolbar=no, menubar=no, status=no';
  var sw = window.open (url, winname,pStr +posStr );

  return false;
<a href="help.aspx"
 onclick="OpenCenWindow(this.href, 'nw', 800, 600);">Help</a>

ZvonkoSystems architectCommented:
Sorry Michel. You are right. Perhaps sureshraina prefered the centering feature provided by pravinasar.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.