[webkit-dev] about javaScript parse
zhenghe zhang
zhenghe.zhang at gmail.com
Fri Feb 27 02:13:06 PST 2009
Hi all
When you run the webpage with webkit and click the button, <what
happens?> there is no pop up. But if you use IE it pops up a dialog box.
I'd like to fix the code for the pop up. I've not done it yet and appreciate
any comments or help.
<html>
<head></head>
<body>
<div><input type="text" Name="text1" value="Hello world!" /></div>
<div><input type="button" id="button1" onclick="alertValue()" value="Show
default value" /></div>
<script type="text/javascript">
function alertValue()
{
alert(text1.value)
}
</script>
</body>
</html>
Thank you
Regards
zh
More information about the webkit-dev
mailing list