how to open a popup window of specific size in asp
Hi everyone, I am new to this and I am trying to open a pop up window of a specific size that has no toolbars or scrollbars. Here is the link I have but it just opens to a full size blank page. Any help would be appreciated...Please help!!! Thanks
<A HREF="dostream.jsp?jid=<%= currentSession.getJSession() %>&tid=<%= currentSession.getID() %>&sid=<%= stream.getVariableStringValue("id") %>"<%= (newWindow?" target=\"_blank\"":"") %>><IMG src="<%= streamImage %>" border="0" alt="Click here to start listening!"></A>
Re: how to open a popup window of specific size in asp
I've moved this thread to the Other Programming Languages forum, since it's not a Java question.
Re: how to open a popup window of specific size in asp
Im sorry guys, I didn't mean .asp I meant A. S. P. (as soon as possible). Im embarrassed with my ignorance.
Re: how to open a popup window of specific size in asp
Haha, that's ASAP- but even then, it's a bad idea to mention things like that because it makes you seem impatient. There are hundreds of posts here, all with an urgent user behind them.
This still isn't a Java question. It's an HTML and Javascript question. I actually happened to write exactly this last night:
Code java:
<script type="text/javascript">
function newPopup(url) {
popupWindow = window.open(url,'popUpWindow','height=500,width=500,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes')
}
</script>
<a href="JavaScript:newPopup(url');">link text</a>
Re: how to open a popup window of specific size in asp
thank you so much, This did it for me. I will be more patient in the future. I am new to forums and still learning the rules. thanks again
Re: how to open a popup window of specific size in asp
I used this above script and all works great, except it is still resizable. The folowing script is what I used.
<script type="text/javascript">
function newPopup(url) {
popupWindow = window.open(url,'popUpWindow','height=700,width=80 0,resizable=no,scrollbars=no,toolbar=no,menubar=no ,location=no,directories=no,status=no')
}
</script>
<a href="JavaScript:newPopup('dostream.jsp?jid=<%= currentSession.getJSession() %>&tid=<%= currentSession.getID() %>&sid=<%= stream.getVariableStringValue("id") %>');">
<IMG src="<%= streamImage %>" border="0" alt="Click here to start listening!">
</a>