• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Execute the Code

 
Arun C. Giridharan
Ranch Hand
Posts: 96
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


document.write(product(4,3)) i'm not able to execute the code...i don't know what is the problem???
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you leave the quotes off your on click handler on purpose?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what would a document.write mean after the document has been rendered?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arun Giridharan wrote:i'm not able to execute the code

Please read TellTheDetails and ItDoesntWorkIsUseless.

And David is correct, document.write() is most certainly not what you want to be doing.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic