- Where Developers Learn, Share, & Build Careers
I have to show a warning box when click on the button but nothing happens I'm not sure that one thing If I want to unify the identifier IE returns the following error details: Webpage error description User Agent: Mozilla / 4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trent / 4.0; SLCC 2; .NET CLR 2.0. 50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0) Timestamp: Mercury, 11 July 2012 23:12:07 UTC Message: Object Expected Line: 25 characters: 1 Code: 0 URI: File: /// C: / U / UJX 9 9 / e / desktop / jscripttest.html I'm not sure how to find it in Firefox. Edit: On the small error icon below IE Instead of clicking, there is a better way of javascript errors? You have the var in the signature of the function, then
function popup (var message)
& Lt; Title & gt; Trial ... & lt; / Title & gt; & Lt; Script type = "text / javascript" & gt; Function popup (var message) {var a = 5 var 2 = 3 warning (message) if (one * two == 15) {warning ("you were right")} other {alerts ("you were wrong")}} & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; Hello, I'm here & Lt; Br / & gt; & Lt; Input type = "button" value = "click here" onclick = "popup" (this is my message ")" /> & lt; / body & gt; & lt; / html> gt;
var before the function parameter can not be.
Comments
Post a Comment