I would like to do two actions when an onClick event is fired: 1 = go to a url; 2 = close a window.
The problem is that I believe the url must be enclosed in double quotes whilst also double quotes must be used to enclose multiple event handler code. Hence, my borwser is reporting a syntax error (IE v6).
The code I am using is (for example):
<input type=button onClick="self.opener.location=" self.close();">
I would be very grateful for any suggestions about how to get this code to work without having to resort to an external function call.
The problem is that I believe the url must be enclosed in double quotes whilst also double quotes must be used to enclose multiple event handler code. Hence, my borwser is reporting a syntax error (IE v6).
The code I am using is (for example):
<input type=button onClick="self.opener.location=" self.close();">
I would be very grateful for any suggestions about how to get this code to work without having to resort to an external function call.