return false
}
fileDownload(spriteRef) - Called by WebXtra when a local file is opened or a
download operation is started. The operation can be canceled by returning FALSE.
The default value is to let the download operation to start.
Lingo example:
on fileDownload spriteRef
return false
end
JavaScript syntax example:
function fileDownload(spriteRef ){
return false
}
startNavigation(spriteRef, URL, frameName) - This event is generated by WebXtra
to request authorization to navigate to a given URL. You can use it to generally
monitor all page navigation operations before they occur. It allows your scripts to
restrict navigation to only certain sites, or intercept special URLs.
Your code should return true to allow the navigation to take place, or false to
cancel it silently. Here are some examples:
Lingo examples:
on startNavigation spriteRef, URL, frameName
-- Only load pages from the macromedia.com domain
if not (URL contains "macromedia.com") then
alert("blocked")
Online Help
30
Komentarze do niniejszej Instrukcji