www.webdeveloper.com

Search:

Type: Posts; User: group99_001

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,451

    No , it didnt work with me , it fired test(44)...

    No , it didnt work with me ,
    it fired test(44) , but what i need is to fire test(123) that's inside innerHTML
  2. Replies
    3
    Views
    2,451

    Onclick inside innerHTML

    hello,
    what is wrong whis this code?

    <div onclick="test(44)">anything</div>
    <script>
    function test(x){alert(x)};
    var col=document.getElementById('Mydiv');
    col.innerHTML='<div...
Results 1 to 2 of 2
HTML5 Development Center



Recent Articles