idiot
09-17-2003, 08:53 AM
HI,
im having some trouble using the onclick event.
When a button is clicked i need it to open a new link in the same window. This is what ive used, but when I test it and click on the button it does nothing, the page sort of freezes and then the screen goes empty.
<input type="button" name="confrm" id="confrm" value="Confirm Booking" onclick="openlink()">
<script>
function openlink{
document.open("url")
}
</script>
appreciate any help
THnx
im having some trouble using the onclick event.
When a button is clicked i need it to open a new link in the same window. This is what ive used, but when I test it and click on the button it does nothing, the page sort of freezes and then the screen goes empty.
<input type="button" name="confrm" id="confrm" value="Confirm Booking" onclick="openlink()">
<script>
function openlink{
document.open("url")
}
</script>
appreciate any help
THnx