twocool
04-17-2003, 03:29 AM
how to link when a new window pop ups....
<a href="javascript:WinOpen('display_form.asp?ReqNo=<%=rs("ReqNo")%>')" target="_self", width=500,height=400><%=rs("ReqNo")%></a>
i linked it like this its not working.... pls advise.. thanks
sorry i accidently posted at ASP this thread too..soory for taht...
HairyTeeth
04-17-2003, 03:56 AM
The window.open() method has the follwing syntax:
window.open('url','popupName','paramters')
where:
url = the page to load (eg. foo.html) [optional];
popupName = a name assigned to the popup for referencing purposes [optional] and,
parameters = a comma-seperated list of boolean and other attributes that allow you to determine the popups confuguration [optional] These include:
toolbar,
location,
status,
resizable,
scrollbars,
menubar,
width=some_width,
height=some_height,
top=top_position,
left=left_position
If you don't specify any of the optional arguments, a browser window the same as the current window gets opened. If i wanted a popup that was resizable, had scrollbars and a status bar, that was 400px x 400px in dimension:
window.open('','','width=400,height=400,scrollbars,resizable,status')
Opening your window directly from a link (without calling a function):
<a href="window.open('display_form.asp?ReqNo=<%=rs("ReqNo")%>','','width=500,height=400')">Open It</a>
If you want to pass window parameters to a reusable window.open() function, thats a bit different. See if this helps.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.