Skip to main content
Inspiring
November 7, 2019
Question

Captivate does not play a basic javascript

  • November 7, 2019
  • 1 reply
  • 424 views

Hi to all....

 

I have tried to open a window in captivate that a user can open and read the included information...See script"

 

Window.open(", ","width=350,height=400,left=25,top=25").document.write("<p>Hello Vinnie.</p>");

 

I have assigned to a ??button?? and on the actions "execute Javascript" containing the above code

 

I am using captivate 2019 and a responsive project'

 

I only want at this stage to get the small window open...WITHOUT SUCCESS.

 

Any help?

 

 

Regards

This topic has been closed for replies.

1 reply

Dirlo
Inspiring
November 7, 2019

Hello !...

Try this :

window.open("", "","width=350,height=400,left=25,top=25").document.write("<p>Hello Vinnie.</p>");

Source : Paul Wilson's video

https://www.youtube.com/watch?v=Nfm4N4jTlsU

😉

vinnie007Author
Inspiring
November 7, 2019

Thank you Le_Dirlo_  (Problem solved)

 

it works like a dream !! the extra set of parenthesis made all the diference..

 

Thanks once again !!

 

Vince

 

 

vinnie007Author
Inspiring
November 7, 2019

Thank you for the link to the video as well...Much appreciated

 

Cheers

 

Vince