linda838
06-21-2006, 12:19 PM
hi guys,
this is my first time posting. i'm pretty much a beginnner. i've been trying to use javascript to generate a new window with the dimensions i want. but i've been frustrated because it always sets off my own explorer's activex control when i test my site. i am then afraid to use the code because i don't want other people viewing my site to be deterred by this warning. i see other sites with a similar simple javascript code to mine that work and i don't know what i'm doing wrong. i would appreciate some help! what am i missing?
my javascript code, inserted between my <header></header> tags:
<script language="javascript" type="text/javascript">
<!--
function newWindow(url)
{
var w = window.open(url,"","width=760,toolbar=no,directories=no,status=no,scrollbars=yes,resize=yes,menubar=yes,history=no");
w.window.focus();
}
// -->
</script>
then i use the function in the body of my page via the following (copied the line in my code):
<div class="thumb"><a href="javascript:newwindow('oil1.html');"><img alt="Julie" src="images/thumb_o1.jpg" /></a></div>
i am testing this in windows explorer 6.0
thanks in advance for your help..
-linda
this is my first time posting. i'm pretty much a beginnner. i've been trying to use javascript to generate a new window with the dimensions i want. but i've been frustrated because it always sets off my own explorer's activex control when i test my site. i am then afraid to use the code because i don't want other people viewing my site to be deterred by this warning. i see other sites with a similar simple javascript code to mine that work and i don't know what i'm doing wrong. i would appreciate some help! what am i missing?
my javascript code, inserted between my <header></header> tags:
<script language="javascript" type="text/javascript">
<!--
function newWindow(url)
{
var w = window.open(url,"","width=760,toolbar=no,directories=no,status=no,scrollbars=yes,resize=yes,menubar=yes,history=no");
w.window.focus();
}
// -->
</script>
then i use the function in the body of my page via the following (copied the line in my code):
<div class="thumb"><a href="javascript:newwindow('oil1.html');"><img alt="Julie" src="images/thumb_o1.jpg" /></a></div>
i am testing this in windows explorer 6.0
thanks in advance for your help..
-linda