Java script not working

<td height="20" class="submenu2"> 
                                    <div align="left"><u><a href="javascript:;" class="submenu2" onClick="MM_openBrWindow('/small_window.htm','','scrollbars=yes,resizable=yes,width=350,height=450')"><u>previous 
                                      announcements</u></a></u></div>
                                  </td>

that’s my code… i have a link someone did for me and it’s weird cause it wont work any way u try to do it! ive deleted the above code but nope no luck!!!..

it’s supposed to be a link that has a pop up box come up upon clicking…but all i get now is error blah blah baa!!!

that’s not all your code cause you are calling a function (using dreamweaver i presume)

better to write it yourself

here is a simple example

onclick="window.open(‘http://www.kirupa.com’,‘win’,‘width=450,height=350’); return false

bsw

so…


<script language ="javascript">
onclick="window.open('http://www.kirupa.com','win','width=450,height=350'); return false
</script>

???

cause i want it to be a javascript pop-up window!?!

window.open
is the method used to make a popup appear in javascript

your code posted is not complete for you are missing the dreamweaver function called MM_openBrWindow

by the way you might want to change
’/small_window. htm’
to
’/small_window.htm’ (extra space before htm extension)

cheers