January 29th, 2003, 06:00 PM
|
#1 (permalink)
|
| Go back to sleep
Join Date: Jul 2002 Location: Switzerland
Posts: 6,163
| pop up -> normal link
ok can someone tell me how to create a link which opens a window (javascript) like this: Quote:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=1,width=700,height=550,left = 290,top = 180');");
// javascript:window.close() <- not important!!
}
// End -->
</script>
| but if this browser has got a pop up blocker it should open the page in the normal Window! (got it??)
example: www.pons.de at the bottom theres a input box just put something in it and press the button if you've got a pop up blocker it will open it in this window and if not it will open a pop up!!
Creatures
__________________ Canon EOS 450D | Canon EF-S 18-55mm 1:3.5-5.6 IS | Canon EF-S 55-250mm 1:4-5.6 IS | Canon Speedlite 430EX II |
| |