Skip to main content
Known Participant
March 6, 2016
Question

I am trying to execute a javascript alert message. I have the following script b ut it does not work. on(release) { gotoAndPlay("over"); getURL("javascript:alert('says hi!')"); } There are no problems with the script but there is no alert winjdow

  • March 6, 2016
  • 1 reply
  • 1855 views

I am trying to execute a javascript alert message. I have the following script b ut it does not work.

on(release) { 

gotoAndPlay("over"); 

getURL("javascript:alert('says hi!')"); }

There are no problems with the script but there is no java alert window popping up either.

Can anybody help me?

Best, C.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 7, 2016

are you testing the published html page in a browser that allows pop-ups?

cabaka11Author
Known Participant
March 8, 2016

Yes, I tried that. I unchecked 'block pop-up window' tab for my Safari browser but it still does not work.

kglad
Community Expert
Community Expert
March 8, 2016

there's nothing wrong with your code.

try testing in a different browser that allows javascript and popups.