Hi,
I know that all input in an HTML page must be inside a form. But I have some
that are not inside a form.
My question is: is there a way to click them? Or do we have to change the
page? I also read somewhere that it is possible to identify them by using
htmlId. Is that correct?
This is the button:
<INPUT class="button2" name="close" type="button" value="Close"
onclick="javascript:closeWindow();">
Remark that the javascript is part of the page:
function closeWindow() {
window.open('','_parent','');
window.close();
}
I guess that I can also use the 'closeWindow' command in this case, but are
there other ways (in case it is not about closing the window)?
Thanks!
David