Hello all! Here is my debut question to this forum :-P
Why does every link that I coded into my web page link back to the last one I coded in the page?
I have in HTML written some dialog. At the end of each paragraph I've placed a link inside the
On_Click event. It seems I call the same function on this On_Click event, which happens to be
the last one I coded in the page.
Any one know why this is happening?
Here is the function:
var answer=confirm("Are you sure you wish to enter this site?")
var win2= window.open ("http://www.msn.com
" location=yes, resizable=yes, height=200, menubar=yes, toolbar=yes, scrollbars=yes, width=200")
<a href="#", onclick=show_it()> MSN's home page</a>
If you would like to see more, here is my page: