Hi there
Can anyone help me here. Just to make my code look tidier, I'm wanting to put all my functions within the same
<script language="javascript" type="text/javascript"</script>
brackets.
However, why does it not work for me?!
Here's an example of one that doesn't work for me:
<script src="includes/java_function.
js" language="javascript" type="text/javascript">
function imgOver() {
}
function imgOut() {
}
function OpenWin()
{
win1=window.open("johnsimpson.asp","
js","width=397 ,height=305" );
win1.location='johnsimpson.asp';
}
</script>
and here's one that does:
<script src="includes/java_function.
js" language="javascript" type="text/javascript">
function imgOver() {
}
function imgOut() {
}
</script>
<script language="javascript" type="text/javascript">
function OpenWin()
{
win1=window.open("1.asp","
js","width=397,height=30 5" );
win1.location='1.asp';
}
</script>
I've had to separate out my functions into separate <script language="javascript" type="text/javascript"></script> tags for them to work
Thanks alot
Adam