Hello !
I have a DIV, with a code inside it ...
I have to append dinamically some HTML code to this code, this code my
contain links ...
i tryed:
oDiv = document.getEle mentById("MyDiv ")
oDiv.innerHTML = oDiv.innerHTML + "<a href=\"http://www.google.com\ "
target=\"_blank \">http://www.google.com</a>"
Or
oDiv.innerHTML = oDiv.innerHTML + '<a href=\"http://www.google.com\ "
target=\"_blank \">http://www.google.com</a>'
Or
oDiv.innerHTML = oDiv.innerHTML + "<a href=\x22http://www.google.com\ "x22
target=\x22_bla nk\x22>http://www.google.com</a>"
But the window opened by this code does not points to www.google.com, but to
"http://localhost/www.google.com
Can someone help me ?
Thank you very much !
I have a DIV, with a code inside it ...
I have to append dinamically some HTML code to this code, this code my
contain links ...
i tryed:
oDiv = document.getEle mentById("MyDiv ")
oDiv.innerHTML = oDiv.innerHTML + "<a href=\"http://www.google.com\ "
target=\"_blank \">http://www.google.com</a>"
Or
oDiv.innerHTML = oDiv.innerHTML + '<a href=\"http://www.google.com\ "
target=\"_blank \">http://www.google.com</a>'
Or
oDiv.innerHTML = oDiv.innerHTML + "<a href=\x22http://www.google.com\ "x22
target=\x22_bla nk\x22>http://www.google.com</a>"
But the window opened by this code does not points to www.google.com, but to
"http://localhost/www.google.com
Can someone help me ?
Thank you very much !
Comment