Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ALERT: Webmasters Why Is This Code Not Compiling.
#1
Hello webmasters please help me out with dix code....dnt knw why it is giving me error.


Code:
<html>
<head>
<script>
function sayHello (name , age , state){      document.write("my   name  is"   name   "i am"   age   "years old and from"   state   "state");
}
</head>
</script>
<body>
<form>
<input type = "button" onclick = "sayHello ("Evince" , 95 , "Kogi")" value = "Say  Hello">
</form>
</body>
</html>


@Dealwap @Laive @Hackinubee@pearstep @jonath45 @Egbune @Aphatheology and others i didn't mention.
Are you single and looking for hookups around your city?
Do you need a girlfriend to share love?
Then join hookups and meet that partner you have long dream of meeting....so what are you waitin for? click below to visit now@
http://bit.do/dDkfR

http://bit.do/dDkfR

http://bit.do/dDkfR

#2
what error are u getting? And u want to use the code where?
Reply
#3
(08-10-2017, 06:00 AM)Egbune Wrote:
what error are u getting? And u want to use the code where?


on click of the button,i want to print to d screen the paramaters given to sayHello () function but instead if i click the button the page will just reload without printing anything.......
Are you single and looking for hookups around your city?
Do you need a girlfriend to share love?
Then join hookups and meet that partner you have long dream of meeting....so what are you waitin for? click below to visit now@
http://bit.do/dDkfR

http://bit.do/dDkfR

http://bit.do/dDkfR

Reply
#4
Try these:

Code:
<script type="text/javascript">
function
sayHello(name
,age,state)
{ document.write
("my
name is
"+name+" i am
"+age+" years
old and from "+
state+" state");
}</script>

<form><input type="button"
onclick="sayHello('Evince','95','Kogi')"
value="Say Hello"/></form>

A genius is one who knows little about everything .
Reply
#5
Its working now
check here for demo

Code:
<script>
function sayHello(name,age,state){
document.write('my name is' +" "+ name+" "+" "+ 'i am' +" "+ age+" "+ 'years old and from' +" "+ state +" "+ 'state');
}
</script>

<form>
<input type=
"button" onclick="sayHello('Evince','95','Kogi');" value="Say Hello">
</form>

Reply
#6
They have written!
Reply
#7
(08-10-2017, 09:03 AM)Egbune Wrote:
They have written!


alryt.
Reply
#8
Yea tanx so much.....@rhexlord @Noblest @Egbune
Are you single and looking for hookups around your city?
Do you need a girlfriend to share love?
Then join hookups and meet that partner you have long dream of meeting....so what are you waitin for? click below to visit now@
http://bit.do/dDkfR

http://bit.do/dDkfR

http://bit.do/dDkfR

Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  HELP: Why Is This Code Not Working. Webmasters Check In! Thepreditor 6 121 Yesterday, 09:26 PM
Last Post: jonath45
  FUN: Let Know Who Can Get This Code Gbedu 7 132 07-08-2017, 05:58 PM
Last Post: Topkeh
  HELP: Webmasters How Do I Add This Function To My Website davincin20 14 349 05-11-2017, 05:15 PM
Last Post: bfaschat
  HELP: Please Help Me Fix This Code jonath45 6 252 03-15-2017, 04:42 PM
Last Post: iamdannyfc
  Hello Coders , I Need This Code/script brainbaze 0 188 03-13-2017, 11:25 AM
Last Post: brainbaze
  Please Help With This Code Macloaded 0 94 01-21-2017, 11:33 PM
Last Post: Macloaded
  I Need Help With This JQuery Code maximus 6 239 01-04-2017, 06:12 PM
Last Post: maximus
  Shortest Code For Random Number Between 1 And N In Javascript Dealwap 2 166 01-03-2017, 11:54 AM
Last Post: Aphatheology
  Javascript Text Editor Right In Your Browser In One Line Of Code smartlord 1 168 12-31-2016, 09:59 PM
Last Post: Voski
  HELP: How Can I Use This Javascript Code? Ali John Hp 13 507 10-29-2016, 08:30 PM
Last Post: Ali John Hp



Users browsing this thread: 1 Guest(s)

About Nigeria's Creative Talents

Nigeria's Creative Talents is an online community where every creative Nigerians can share ideas with themselves.

For any more information, please use our contact form.

              User Links

              Advertise