login  Naam:   Wachtwoord: 
Registreer je!
 Forum

Opennewwindow

Offline TotempaaltJ - 28/02/2007 17:50
Avatar van TotempaaltJPHP interesse Ik heb een functie:
  1. <? Kleur
  2. function openNewWindow(url) {
  3. popupWin = window.open(url,
  4. 'open_window', 'width=333, height=122, left=0, top=0')
  5. }

En ik wil deze ongeveer zo hebben:
  1. <? Kleur
  2. function openNewWindow(url, width, height) {
  3. popupWin = window.open(url,
  4. 'open_window', 'width='width', height='height', left=0, top=0')
  5. }

Ik heb geen idee hoe dit moet!

3 antwoorden

Gesponsorde links
Offline Ibrahim - 28/02/2007 17:53
Avatar van Ibrahim PHP expert
  1. <? Kleur
  2. function openNewWindow(url, width, height) {
  3. popupWin = window.open(url,
  4. 'open_window', 'width='+width, height='+height, left=0, top=0')
  5. }
Offline TotempaaltJ - 28/02/2007 17:56 (laatste wijziging 28/02/2007 18:10)
Avatar van TotempaaltJ PHP interesse Je bedoelt waarschijnlijk:
  1. <? Kleur
  2. function openNewWindow(url, width, height) {
  3. popupWin = window.open(url,
  4. 'open_window', 'width='+width', height='+height', left=0, top=0')
  5. }


Edit:
Hoe gebruik ik deze? Iets van:
openNewWindow('http://www.pumpkinjuice.nl', 333, 333);
Edit again:
Dat werkte dus niet... Met qoutes om de getallen?
Offline Dark_Paul - 28/02/2007 19:02
Avatar van Dark_Paul PHP ver gevorderde
  1. <? Kleur
  2. function openNewWindow(url, width, height) {
  3. popupWin = window.open(url,
  4. 'open_window', 'width='+width, 'height='+height, 'left=0', 'top=0')
  5. }
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.2s