Target=_blank doesn't work

I've created a form for web, inserted a hospot button with the following command

@Command([Compose];"CHI" )

I went to properties of the button, then <HTML> tag, then Other, and wrote target=_blank

It composes the CHI form but within the same window.

any idea to open it in a new window ??
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sjef BosmanGroupware ConsultantCommented:
It is not possible using only standard Notes. You need to write some HTML and JavaScript on the form to do this.

- create a button with an HREF to the form and a TARGET=_blank
- set passthru-HTML property
- code in its simplest form:
    <INPUT TYPE=BUTTON ONCLICK='"../yourform?openform")'>
ninteen83Author Commented:
I tried to compose CHI through html .. by writing <INPUT TYPE=BUTTON .... but it didn't satisfy my need. got some problem with that... therefore I'm using a hospot button to compose CHI form. and need to open it in a new window ..

I'm sure there can be a way ..
Sjef BosmanGroupware ConsultantCommented:
Nope. Tell us what you did with an <INPUT> tage, and why it didn't satisfy your need. What's the problem?
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Sjef BosmanGroupware ConsultantCommented:
To be more specific: an <INPUT> tag does not have a TARGET parameter. If you change it to any other hotspot that generates an <A> tag, then it will work, but you won't have a button :(
1983, It is right there...

In the hotspot property define the frame (on the first tab) as _blank. This will take care of creating the form in a new window.

sjef, you can add &BaseTarget=_blank to the url method that you mentioned to define a new window
Andrea ErcolinoCommented:
  @SetTargetFrame( "_blank" );
  @Command( [Compose]; "CHI" )

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sjef BosmanGroupware ConsultantCommented:
RAPUTA: brilliant! R6 of course...
ZvonkoSystems architectCommented:
@SetTargetFrame was already in R5.

My proposal is to put this into onClick event of the button for the Web handler:'CHI?OpenForm')

But the Web handler is available only in R6.
In R5 you have to change the Button language from Formula to JavaScript.
Then you can enter the upper formula in onClick event:'CHI?OpenForm')

ninteen83Author Commented:
RAPUTA : It works fine. thanks

Zvonko : It works too .. but I got some problems with html and javascript :s
ZvonkoSystems architectCommented:
It's OK :-)
Andrea ErcolinoCommented:
Thank you for the points, nintee83!! :-)

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.