I think title says it all.
I need help, I am trying to use an onclick function (on an image), to open an html file in a certain target...
How can I archive this??
I think title says it all.
I need help, I am trying to use an onclick function (on an image), to open an html file in a certain target...
How can I archive this??
You don't even need javascript for that, although it can be used. Without javascript:
With javascript, there are many, many possibilities. The most basic is:HTML Code:<a href="whatever.htm" target="whatever"><img border="0" src="some.jpg" alt=""></a>
HTML Code:<a onclick="window.open(this.href,this.target);return false;" href="whatever.htm" target="whatever"><img border="0" src="some.jpg" alt=""></a>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks