PDA

View Full Version : javascript to open form window LOOK PLEASE


shaz1987
12-05-2006, 08:56 PM
does any 1 know if it is possible to have a function in scripts which opens a new window form of width=250,height=400'

i want it to open but i want to use a script so that onclick returns that functon

does any1 know how to make that script please helpppppppp i want it to open new window from using script please helpppp

Marlo
12-05-2006, 09:31 PM
like?


<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=250,height=400');");
}
</script>
For the header

And then use this as a link to open it.

<A HREF="javascript:popUp('URL HERE')">Open the Popup Window</A>