Chrome.tabs.executescript cannot call non-native code?

I have a nwjs project in which I put a webview to visit third-party websites.

the following figure shows a custom method in a third-party website:

clipboard.png

chrome.tabs.executescript:

clipboard.png

js:location.href="abc.com"

clipboard.png

what is the problem with this? Is it true that chrome does not allow non-local methods on the site to be called? Please let the gods know

Mar.03,2021

permission problem? Add
"permissions" to
manifest.json: ["activeTab", "declarativeContent", "storage"]

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5d260-44432.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5d260-44432.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?