Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a new window on a command click

Status
Not open for further replies.

amnovice2

Programmer
Aug 11, 2003
13
US
Hi,
I have a custom node command for a custom node. On clicking it, it opens that document in the same browser window.

But i want to open that document in a new browser window.
How do i achieve this?
I guess i should modify the functionmenu.js file. am i on the right track? how?

thanks
 
this is the javascript code to open a new window

<a href=&quot;javascript:void(0);&quot; onclick=&quot;window.open(' 'Hello', 'location=no, menubar=no, scrollbar=no, status=no, resizable, height=200, width=200');&quot;>Will it Open a new window</a></p>


You will probably have to pass the URL to the window.open method.All the rest are parameters that the javascript window object inherits.If it no boolean false is implied.The User and Groups window is a new window in livelink.so that should give you a clue also.
 
In the .URL script of your new command add some code as follow;

// for the Mac, we need to put the old search results link to HH, as there is no function menu to access it from
if IamMac
url = &quot;JavaScript:var hitsWindow = window.open( '&quot; + url + &quot;', 'highlight', 'width=600,height=500,resizable,scrollbars' );hitsWindow.focus()&quot;
else
url = url + &quot;&OpenInNewWin=HitHighLightWindow&quot;
end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top