Skip to main content
Inspiring
Nov 7, 2019 9:18 AM UTC
Question

Captivate does not play a basic javascript

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Dirlo
Inspiring
Nov 7, 2019 10:26 AM UTC

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

😉

Translate
vinnie007Author
Inspiring
Nov 7, 2019 1:16 PM UTC

Thank you Le_Dirlo_  (Problem solved)

 

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

 

Thanks once again !!

 

Vince

 

 

Translate
vinnie007Author
Inspiring
Nov 7, 2019 1:17 PM UTC

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

 

Cheers

 

Vince

Translate