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 <[email protected]> To: [email protected] 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 [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

