[webkit-dev] about javaScript parse
David Kilzer
ddkilzer at webkit.org
Fri Feb 27 08:32:41 PST 2009
Change:
<div><input type="text" Name="text1" value="Hello world!" /></div>
to:
<div><input type="text" id="text1" value="Hello world!" /></div>
and reload.
Dave
________________________________
From: zhenghe zhang <zhenghe.zhang at gmail.com>
To: webkit-dev at lists.webkit.org
Sent: Friday, February 27, 2009 2:13:06 AM
Subject: [webkit-dev] about javaScript parse
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
_______________________________________________
webkit-dev mailing list
webkit-dev at lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090227/66b0eb73/attachment.html>
More information about the webkit-dev
mailing list