Forums

popup on click a button

cyber81 01 Jul, 2015
Hello guys! I want have 2 button on my form.. a button with type "button" and a button with type "submit".
With the button type "button" I would open a windows on click; so I have put the button on my form then I have done this procedure:

1) designer, event: on click - > button - > function "test123"
2) in Setup, I have put an event with name "test123"
3) in the event I have put a Load JS action with code as this:
popupWindow = window.open('http://www.test.com/link-with-article-and-form.html','aaaa','width=200,height=200');
popupWindow.focus();

But do not work
Any Idea?

tnx
GreyHead 02 Jul, 2015
Hi cyber81,

It looks as though you are calling a function test123() BUT you haven't defined a function in your JavaScript:
function test123() {
  popupWindow = window.open('http://www.test.com/link-with-article-and-form.html','aaaa','width=200,height=200');
popupWindow.focus();
)


Please also see this FAQ

Bob
cyber81 04 Jul, 2015
oh thank you bob :9
This topic is locked and no more replies can be posted.