• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

Javascript to open a new sized window

Contributor ,
Sep 26, 2014 Sep 26, 2014

Copy link to clipboard

Copied

Hello everyone

I am working on a responsive project (CP8) which is going to be converted into an iPad App with phonegap.

The app has several links that open PDF documents. The problem is that when the  new window is opened you are stuck on it and con'not get back to the actual App. There is no back button like an android phone and pressing the home button and going back to the App just reopens the link with the PDF document.

I was thinking of adding javascript to open a small window to view the pdf document so the user can X out of it, but I do not know if this will work and am uncertain on what code I would need to open a link in lets say an 800 wide x 400 high new popup window.

Any idea on how to resolve this issue.

Views

155

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Help resources