Sumukha
asked on
How to open onClick='window.location'"http://www.trallalla.com" in a new window?
Hello Experts,
How can I modify
<div Width="130px" class='CategoryBox' style="CURSOR: pointer" onClick='window.location=" http://www.trallalla.com" ' onmouseover='this.classNam e="OverCat egoryBox"; ' onmouseout='this.className ="Category Box";'>Tra llalla</di v>
so it opens in a new window?
How can I modify
<div Width="130px" class='CategoryBox' style="CURSOR: pointer" onClick='window.location="
so it opens in a new window?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This worked perfectly. Thanks!
what is wrong with my answer
>>what is wrong with my answer
window.open is a method, not a property. You just overwrote the function reference with a string. It will not open a window.
window.open is a method, not a property. You just overwrote the function reference with a string. It will not open a window.
ASKER
Hello erikTsomik,
your suggestion did not work.
Thanks for suggesting anyway.
your suggestion did not work.
Thanks for suggesting anyway.
<div Width="130px" class='CategoryBox' style="CURSOR: pointer" onClick='window.open="http://www.trallalla.com" ' onmouseover='this.classNam