BrowserVersionOwn?TypeAs String
BingPreview1.0.0???
Chrome49.0.2623???
Chrome87.0.4280ownfunctionfunction handler(event) { if ( event.source == window && event.data && event.data.direction == 'from-content-script' ) { if (event.data.detach) { window.removeEventListener('message', handler) window.prompt = originalPrompt window.confirm = originalConfirmation window.alert = originalAlert return } let result = undefined switch (event.data.command) { case 'setNextPromptResult': nextPromptResult = event.data.target document.body.setAttribute('setPrompt', true) window.postMessage( { direction: 'from-page-script', response: 'prompt', }, '*' ) break case 'getPromptMessage': result = recordedPrompt recordedPrompt = null window.postMessage( { direction: 'from-page-script', response: 'prompt', value: result, }, '*' ) break case 'setNextConfirmationResult': nextConfirmationResult = event.data.target document.body.setAttribute('setConfirm', true) window.postMessage( { direction: 'from-page-script', response: 'confirm', }, '*' ) break case 'getConfirmationMessage': result = recordedConfirmation recordedConfirmation = null try { window.postMessage( { direction: 'from-page-script', response: 'confirm', value: result, }, '*' ) } catch (e) {} // eslint-disable-line no-empty break case 'setNextAlertResult': document.body.setAttribute('setAlert', true) window.postMessage( { direction: 'from-page-script', response: 'alert', }, '*' ) break } } }
Chrome88.0.4292???
Edge85.0.564???
Firefox68.0.0???
IE10.0.0???
Project1.3.2???
requests2.25.0???
Safari10.1.2???
SamsungBrowser13.0.0???
YandexBot3.0.0???

PropertiesBingPreviewChromeEdgeFirefoxIEProjectrequestsSafariSamsungBrowserYandexBot
length? 87.0.4280????????
prototype? 87.0.4280????????