I am trying to put button on a window that i have opened using openwindow. the button when clicked starts a function i am just having problems passing a varibale below is what i have at the moment.
<script type=”text/javascript” src=”bits.js”></script>
<script type=”text/javascript”>
function openindex(image, text, aid, title)
{
OpenWindow=window.open(“”, “newwin”, “height=400, width=300,toolbar=no,scrollbars=”+scroll+”,menubar=no”);
OpenWindow.document.write(“<link href=”+’text.css’+” rel=”+’stylesheet’+” type=”+’text/css’+”>”)
OpenWindow.document.write(“<title>”)
OpenWindow.document.write( title )
OpenWindow.document.write(“</title>”)
OpenWindow.document.write(“<img src=”+image+”>”)
OpenWindow.document.write(“<p id=”+’ just ‘+”>”)
OpenWindow.document.write(“</p>”)
OpenWindow.document.write(text)
OpenWindow.document.write(“<input name=”+’Add’+” type=”+’button’+” value=”+’Add to route’+”onclick=”+’route(“aid”)’+”/>”)
OpenWindow.document.close()
self.name=”main”
}
</script>