PJ
|
Posted: 07/07/2003, 4:18 AM |
|
I want to open a new browser of specific dimensions, no tool bar etc.
Here is the data row I am using at present to launch a standard browser:
<td class="SnowDataTD"><a class="SnowDataLink" href="{Link2_Src}"
target="_blank">{Link2}</a></td>
The Javascript would presumably sit in between the head tags as normal but
what of the remainder of the script that controls the event?
I need to make this work :
<a href="javascript:NewWindow( '{Link2_Src}', 300, 200, 50,
50 )">{Link2}</a>
Can anyone assist please?
Thanks
PJ
|
|
|
DonB
|
Posted: 07/07/2003, 4:34 PM |
|
I guess you are copying code from somewhere. Do you have the declaration
and code for NewWindow()? The jscript function to make a window is actually
"window.open()":
For example:
<script LANGUAGE="JavaScript">
<!--
function NewWindow(mypage,myname,w,h)
{
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollba
rs=No,resizable=No,menubar=No'
win = window.open(mypage,myname,settings)
if(win.window.focus)
{
win.window.focus();
}
}
-->
</script>
<a href="javascript:NewWindow('map.html','detail','550','595')">New</a>
DonB
"PJ" <apis@globalnet.co.uk> wrote in message
news:bebkut$s32$1@news.codecharge.com...
> I want to open a new browser of specific dimensions, no tool bar etc.
>
> Here is the data row I am using at present to launch a standard browser:
>
> <td class="SnowDataTD"><a class="SnowDataLink" href="{Link2_Src}"
> target="_blank">{Link2}</a></td>
>
> The Javascript would presumably sit in between the head tags as normal but
> what of the remainder of the script that controls the event?
>
> I need to make this work :
>
> <a href="javascript:NewWindow( '{Link2_Src}', 300, 200, 50,
> 50 )">{Link2}</a>
>
> Can anyone assist please?
>
> Thanks
>
> PJ
>
>
|
|
|
|