J
John
Hi
There is a <select name='city'> item with <option> in the HTML <form
name='france'>
I have tried using the following in a JS routine:
<a
href="javascript:window.opener.document.france.city.options[21].selected=true;
window.close();"></a>
I get
Error Line 0
'window.opener.document.france.city.options.21 is null on not an object
Is the syntax correct?
I have tried the following on an <input type='text' and it works OK.
<a href="javascript:window.opener.document.france.industry.value='iron';
window.close();"></a>
Regards
John
There is a <select name='city'> item with <option> in the HTML <form
name='france'>
I have tried using the following in a JS routine:
<a
href="javascript:window.opener.document.france.city.options[21].selected=true;
window.close();"></a>
I get
Error Line 0
'window.opener.document.france.city.options.21 is null on not an object
Is the syntax correct?
I have tried the following on an <input type='text' and it works OK.
<a href="javascript:window.opener.document.france.industry.value='iron';
window.close();"></a>
Regards
John