SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Jan 2011
    0 Post(s)
    0 Thread(s)

    Extreme basic question (grease monkey)

    Im trying to add this to my local page via grease monkey just for practicing wise

    Code JavaScript:
    document.body.innerHTML += '<center><input type="submit" onclick="alert("BooYa!")" value="Click Me !"></center>';

    somethings wrong at ** onclick="alert("BooYa!")" **

    just cant figure out how to do this..

    any advices regarding this? thanks a million
    Last edited by Mittineague; Jul 26, 2011 at 22:09. Reason: reformatting bbcode tags


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts