WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   JavaScript:self.close() (http://www.wcm.at/forum/showthread.php?t=66059)

flocky 11.08.2002 16:51

Zitat:

Original geschrieben von _m3
Wie gesagt - im Mozilla klappt alles, nur der IE wehrt sich.
verstehst du das nicht????
bei java-fun.de gibts ein script, das GEHT und ich verwende nur den IE !!!! dort gehts, und wenn ichs machen will, dann gehts NICHT !

_m3 11.08.2002 16:53

Beruhig Dich und lies Dir oben den ersten Link durch. ;)
Zitat:

If JavaScript tries to close a window it didn't originally open the
browser pops up a confirmation dialog for the user to agree on closing
the window.
Avoiding that is only possible with trusted script in NN4 and with a
signed active x control like wpm of www.meadroid.com in IE4+.

mcs_ 11.08.2002 19:53

Zitat:

Original geschrieben von <<>>serious<<>>

geht ned !

vielleicht mach ich im code was falsch, kannst du vielleicht schnell eine .html-datei für mich schreiben ? eiso wo nur das drin steht, was du sagst, oder was auch immer noch dazu gehört, weil bei mir gehts ned !



hm, moment ...
test.html
Code:

<html>
<head>
<title>test</title>
</head>
<SCRIPT LANGUAGE="javascript">
<!--//

function PopWin(myURL,myWindowName,myWidth,myHeight) {
window.open(myURL, myWindowName,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + myWidth + ",height=" + myHeight + ",top=70,left=70");
}
//-->
</script>
<body>
<table border="0">
<tr><td align="left">
pop
</td>
<td></td>
<tr>
</table>
</body>
</html>

und pop.html
Code:

<html>
<head>
<title>pop</title>
</head>
<body onblur="this.close()">
<table border="0">
<tr>
<td><a>serwas!</a></td></tr>
<td>close2</td>
</table>
</body>
</html>

hoffentlich kannst es brauchen ...

P.St 02.09.2002 09:00

@flocky

du schriebst:

bei java-fun.de gibts ein script, das GEHT und ich verwende nur den IE !!!! dort gehts, und wenn ichs machen will, dann gehts NICHT !

ich war auf der Site habe den Script aber nicht gefunden, kannst du ihn mir senden?

Danke, Peter


Alle Zeitangaben in WEZ +2. Es ist jetzt 01:38 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag