RonnyZenn
10-16-2006, 11:30 AM
Hi,
I have a strange pop-up problem. First let me display the code,
function addLink(){
document.getElementById('TESTME').innerHTML= "<br><span id=me><a href=# onclick=\"window.open('http://www.yahoo.com','name','height=255,width=250,toolbar=no,directories=no,status=no,menubar=no,scrollbar s=no,resizable=no')\">TEST LINK</a></span>";
}
This code works perfect in an empty page with <div id="TESTME">...</div>
But when I copy/paste the same code in to actual site of mine(without changing even a bit), it doesn't work at all.
I mean in my actual site, I get the link and everything setted up as I wanted but it doesn't open a pop-up.When I change it to an ordinary link with <a href=.. target=_blank>.... </a>, It again works fine.
But I want just an ordinary pop-up to be displayed which I couldn't do.:confused:
Any idea or suggestion!!!?
Thanks
I have a strange pop-up problem. First let me display the code,
function addLink(){
document.getElementById('TESTME').innerHTML= "<br><span id=me><a href=# onclick=\"window.open('http://www.yahoo.com','name','height=255,width=250,toolbar=no,directories=no,status=no,menubar=no,scrollbar s=no,resizable=no')\">TEST LINK</a></span>";
}
This code works perfect in an empty page with <div id="TESTME">...</div>
But when I copy/paste the same code in to actual site of mine(without changing even a bit), it doesn't work at all.
I mean in my actual site, I get the link and everything setted up as I wanted but it doesn't open a pop-up.When I change it to an ordinary link with <a href=.. target=_blank>.... </a>, It again works fine.
But I want just an ordinary pop-up to be displayed which I couldn't do.:confused:
Any idea or suggestion!!!?
Thanks