rubahfgouveia Posted October 23, 2010 Share Posted October 23, 2010 Hey all, my doubt is the following: Is there a way of opening files (images,pdf's,etc) in a popup window? What I intend to do, is have a button, that when pressed, would acess and open certain files in a popup window. I already know how to acess and download the files, but I would like to know how to open them inside the browser. sorry for the bad English. Hope you understood and can help. Thanks alot, Ruben Quote Link to comment https://forums.phpfreaks.com/topic/216620-php-fopen/ Share on other sites More sharing options...
trq Posted October 23, 2010 Share Posted October 23, 2010 Pop-up windows are created client side using Javascript. Quote Link to comment https://forums.phpfreaks.com/topic/216620-php-fopen/#findComment-1125463 Share on other sites More sharing options...
rubahfgouveia Posted October 23, 2010 Author Share Posted October 23, 2010 sorry, got it. it was really easy <SCRIPT> function openwindow() { window.open("example.jpg","menubar=1,resizable=1,width=350,height=250"); } </SCRIPT> <A href="javascript: openwindow()">Open File</A> Quote Link to comment https://forums.phpfreaks.com/topic/216620-php-fopen/#findComment-1125464 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.