Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder UrbanTwitch's Avatar
    Join Date
    Apr 2006
    Posts
    485
    Thanks
    44
    Thanked 1 Time in 1 Post

    Won't work . InnerHTML

    Code:
    <script type="text/javascript">
    <!--
    if(location.href.match('Post&CODE=00&f=13'))
    {
    document.getElementsByName('Post')[0].innerHTML += "Name:
    Age:
    Genger:
    Sexual Orientation:
    Political Preferance:
    How'd you find us:"
    }
    //-->
    </script>
    That will not work. I tried replacing the Age, Gender, Name, etc with like "ghweghwegwe" and it worked.
    Do I need a \n or multiple lines of document.getElementsByName? Or wha?\

    Thanks!
    Formerly MysticScript

    6+ years club

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    See if adding highlighted helps:
    Code:
    document.getElementsByName('Post')[0].innerHTML +="Name:<br>\
    Age:<br>\
    Genger:<br>\
    Sexual Orientation:<br>\
    Political Preferance:<br>\
    How'd you find us:"
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph


  •  

    Posting Permissions

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