Hi!
Im new to programming dashboard widgets.
I am making a simple widget just to learn how to make widgets, but I need some help with programming a button.
I want the program to write something on the screen when I push the button.
my code:
<html>
<head>
<script type="text/javascript">
function = test(){
document.write("test");
}
</script>
</head>
<body>
<input type="button" onclick="test()" value="Write test!">
</body>
</html>
The problem is that the widget closes when I press the button.
Does anyone know how to fix this?
Regards allegutta!
Im new to programming dashboard widgets.
I am making a simple widget just to learn how to make widgets, but I need some help with programming a button.
I want the program to write something on the screen when I push the button.
my code:
<html>
<head>
<script type="text/javascript">
function = test(){
document.write("test");
}
</script>
</head>
<body>
<input type="button" onclick="test()" value="Write test!">
</body>
</html>
The problem is that the widget closes when I press the button.
Does anyone know how to fix this?
Regards allegutta!