I've been using the following code to open new windows:
<script launguage="javascript">
function openWindow(url)
{ window.open(url,'newpage','scrollbars=no,resizable=no,width=400,height=200');
}
<html>
....
.....
<a href="javascriptpenWindow(php/newsregister.php');">Click here</a>
...
...
</html>
My question is i cant seem to get it working so i can specify the size. i.e. i want to create a function
function openWindow(url,width,height)
Can i do this? I have tried google. Sorry if the answer is obvious. I have tried a few things



penWindow(php/newsregister.php');">Click here</a>



In your call to the function, the parameter needs to be quoted, and you're missing the first quote. It should be:

Bookmarks