When I insert it on my page I had very interesting results. It says 'test' when page is loaded and it is fine. Click on 'say test' span and you'll see 'test' once more! I don't understand why it is happened, it didn't reload page. More of that if you'll click on the span again you'll not see this word. But wrap works fine I can see additional DIV in DOM model, after each clcik.
When I insert it on my page I had very interesting results. It says 'test' when page is loaded and it is fine. Click on 'say test' span and you'll see 'test' once more! I don't understand why it is happened, it didn't reload page. More of that if you'll click on the span again you'll not see this word. But wrap works fine I can see additional DIV in DOM model, after each clcik. Can someone explain me what's happened and how can I avoid alerts?