Marte
06-26-2003, 05:56 AM
Hi,
I have an image on my web page which launches a new window when clicked. It workes fine on Mozilla 1.3, but not IE 5.0 or 6.0.
I have tried the two following alternatives:
<a href="javascript:popUp()">
<img src="<%=request.getContextPath()%>/my.gif" border="0">
</a>
and
<a href="#" onClick="popUp()">
<img src="<%=request.getContextPath()%>/my.gif" border="0">
</a>
with the java script function:
function popUp() {
window.open("thepath","title",height=xx,widht=yy, etc.);
}
In the status bar at the bottom of the IE 6.0 browser reads "Error on page" when I click the image. What does this mean?
I have tried the non-scripting alternative, which actually works:
<a href="path" target="_blank">
<img src="<%=request.getContextPath()%>/my.gif" border="0">
</a>
But this opens a separate window for each click. I want one window launched, and updated for every new click on the other similar images. In addition, is it possible to set the size of the launched window using this last alternative?
Any solutions to my problem will be highly appreciated! THANKS!!
Marte
I have an image on my web page which launches a new window when clicked. It workes fine on Mozilla 1.3, but not IE 5.0 or 6.0.
I have tried the two following alternatives:
<a href="javascript:popUp()">
<img src="<%=request.getContextPath()%>/my.gif" border="0">
</a>
and
<a href="#" onClick="popUp()">
<img src="<%=request.getContextPath()%>/my.gif" border="0">
</a>
with the java script function:
function popUp() {
window.open("thepath","title",height=xx,widht=yy, etc.);
}
In the status bar at the bottom of the IE 6.0 browser reads "Error on page" when I click the image. What does this mean?
I have tried the non-scripting alternative, which actually works:
<a href="path" target="_blank">
<img src="<%=request.getContextPath()%>/my.gif" border="0">
</a>
But this opens a separate window for each click. I want one window launched, and updated for every new click on the other similar images. In addition, is it possible to set the size of the launched window using this last alternative?
Any solutions to my problem will be highly appreciated! THANKS!!
Marte