<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Hallo</title>
<script type="text/javascript">
function haveAnAlert()
{
        alert('Es klappt!');
}

</script>
</head>
<body>
Teste dies
</body>
</html>

How can I execute the function haveAnAlert() in a GreaseMonkey Script?
I do not want to copy the function into the script or such, just
execute it in the script.
I tried:
haveAnAlert();
window.onload = haveAnAlert;
document.body.addeventlistener('load', haveAnAlert, true);
But none of these work as they seem to refer to Functions declared in
the Greasemonkey Script.
Is there any way to do what I want except copying the function into
the Script?

SideSwipe

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to