Skip to main content
Inspiring
Jul 9, 2024 2:19 PM UTC
Question

CEP javascript won't execute when launching the extension from menu

<!doctype html>
<html lang="en">
<head>
<title>**</title>
</head>
<body>
</body>
<script>
window.onload = function(){
alert("hiloo");
}
</script>
</html>

alert won't  execute unless I set UI in manifest.xml as
<Type>Modeless</Type>


..but I want type to be Panel
what am I missing?

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Andy Swift
Inspiring
Jul 12, 2024 7:42 PM UTC

Have you tried setting autostart to true in the manifest (a shot in the dark)

 

Why do you need onload? You're already at the end of the bidy tag.

Translate