Try this code.
<html>
<body>
<form name = "form1" method="get" action="http://e-gun.com/search1.php"> <p align="center">Search E-Gun Directory:<br>
<input type="text" name="keyword" size="20">
<br><input type="button" value="SUBMIT" o n C l i c k =popup_window(document.form1.keyword.value)></form>
<script language="JavaScript">
function popup_window(sanyev) {
url = "http://e-gun.com/search1.php?keyword="+sanyev
window.open(url, 'popup', 'width=450, height=500, menubar=no, scrollbars=yes,toolbar=no,location=no, resizable=no, top=, left=');
}
</script>
</body>
</html>
I am not a
java script writer but i think this will serve your needs.
Sanyev
Remove the spaces between the onClick command for the script to work. The system is not allowing me to post the reply with onClick saying that it is not allowed.