|
location.href to a New Window
I use this code to create a banner that contains text:
<table onClick='location.href="URL"' onMouseOver='this.style.cursor="pointer"'><tr><td>text of banner...
because it makes the whole banner a link. If I do it this way:
<table><tr><td ><a href='http://URL' target='_blank'>text of banner...
only the text is the link and if someone puts their cursor over a non-text area they might no realize they can click on it.
In the second example, however, I use target='_blank' to open up a new window.
My question is, is there a way to use the first method and open a new window.
Thanks, Peter
|