Hello,
(sorry if my english is bad, I'm dutch)
Go look at my problem on the internet, if you want:
http://home.planet.nl/~reyve002/Popup/index.html
this site is build with a dHTML-scrollable area. But now I want to open a
pop-up from out this scrollable area. For this pop-up I needed a piece of
scripting, the following:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popup() {
window.open('popup.html', 'popup', 'width=376, height=180, toolbar=0,
scrollbars=1, location=0, status=0, menubar=0, resizable=0, screenX=' +
((screen.width - 376) / 2) + ', screenY=' + ((screen.height - 180) /
2) + ', top=' + ((screen.height - 180) / 2) + ', left=' + ((screen.width -
376) / 2) + '')
}
// Eind -->
</script>
In the <body> area I pasted the followwing line:
<input class="text" type="button" value="Popup"
onclick'=javascript:popup()'>
NOW THE PROBLEM IS: THE DHTML-AREA DOESN'T REACT ON THE <SCRIPT>-AREA
......... WHAT AM I DOIN WRONG???????
THANKS VERY MUCH FOR HELPING
BART
Agoston Bejo - 21 Jul 2004 08:37 GMT
> Hello,
>
[quoted text clipped - 15 lines]
> function popup() {
> window.open('popup.html', 'popup', 'width=376, height=180, toolbar=0,
If there is really an enter here in your code, that generates a javascript
error, but I supposed it is only in this text for readability reasons.
> scrollbars=1, location=0, status=0, menubar=0, resizable=0, screenX=' +
> ((screen.width - 376) / 2) + ', screenY=' + ((screen.height - 180) /
[quoted text clipped - 11 lines]
>
> NOW THE PROBLEM IS: THE DHTML-AREA DOESN'T REACT ON THE <SCRIPT>-AREA
Do you mean by this that clicking on your button input does nothing? I tried
your code and to me it opened a new window with no problem. (Supposed you
didn't put that enter there in the code, where I indicated the problem may
lie.)
> ......... WHAT AM I DOIN WRONG???????
>
> THANKS VERY MUCH FOR HELPING
>
> BART
Stan Scott - 26 Jul 2004 08:24 GMT
This correctly gives me a popup window in IE6. what's your environment??
Stan Scott
New York City
> Hello,
>
[quoted text clipped - 35 lines]
>
> BART