The users in my community want the chat to be opened in a small window without all the control bars.
So I think a popup window without scroll bars, location bar, status bar and so on would be the best solution. Right?
What is the best way to have such a popup window? JavaScript? Can I do it like this?
BETWEEN AND
<script type="text/javascript">
<!--
var win = NULL;
onerror = stopError;
function stopError(){
return true;
}
function openChat(){
settings = "width=640, height=480, top=20, left=20, scrollbars=no, location=no, directories=no, status=no, menubar=no, toolbar=no, resizable=no, dependent=no";
win = window.open('http://www.example.org/chat.html', 'Chat', settings);
win.focus();
}
// -->
</script>
BETWEEN AND
<a href="#" onclick="openChat(); return false">Open chat</a>
ON CHAT.HTML
<form><input type="submit" value="Close chat" onClick="window.close()"></form>