Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

New blank window is not opening through javascript

  • 1 përgjigje
  • 1 e ka hasur këtë problem
  • 6 parje
  • Përgjigjja më e re nga Paul

more options

I am building a web app where I need to open blank tab for redirect its working on desktop but not in android.

/**

    * New Window
    */
   const newWindow: any = window?.open(, '_blank');

   if (!newWindow) return;
   /**
    * Loading Text
    */
   const textNode: any = newWindow.document.createElement('h1');
   textNode.appendChild(document.createTextNode('Loading ...'));
   newWindow.document.body.appendChild(textNode);

When the open parameter is empty it should open blank tab but instead its opening the current location. When put 'about:blank" in open parameter, it open blank page but the createNode function & other codes are not running.

I am building a web app where I need to open blank tab for redirect its working on desktop but not in android. /** * New Window */ const newWindow: any = window?.open('', '_blank'); if (!newWindow) return; /** * Loading Text */ const textNode: any = newWindow.document.createElement('h1'); textNode.appendChild(document.createTextNode('Loading ...')); newWindow.document.body.appendChild(textNode); When the open parameter is empty it should open blank tab but instead its opening the current location. When put 'about:blank" in open parameter, it open blank page but the createNode function & other codes are not running.

Krejt Përgjigjet (1)

more options

Hi

This sounds more like a web development question than an issue with Firefox for Android.

I recommend that you ask about this at:

https://stackoverflow.com/