Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
Extensión de la aplicación Safari: el JavaScript emergente de la barra de herramientas no se está ejecutando

Intento crear una extensión de la aplicación Safari. El javaScript popup.js no se ejecuta para el icono de la barra de herramientas. El popup.html se muestra correctamente.

ventana emergente.html

 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src="popup.js"></script> <link rel="stylesheet" href="popup.css"> </head> <body> <strong>Hello World!</strong> </body> </html>

emergente.js

 alert("Test");

manifiesto.json

 { "manifest_version": 2, "default_locale": "en", ... "background": { "scripts": [ "background.js" ], "persistent": true }, ... "browser_action": { "default_popup": "popup.html", "default_icon": { "16": "images/toolbar-icon-16.png", "19": "images/toolbar-icon-19.png", "32": "images/toolbar-icon-32.png", "38": "images/toolbar-icon-38.png" } }, "permissions": ["notifications", "create", "tabs"] }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Resolví el problema moviendo <script src="popup.js"></script> en la parte del cuerpo:

 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="popup.css"> </head> <body> <strong>Hello World!</strong> <script src="popup.js"></script> </body> </html>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!