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 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. 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> Link to comment https://forums.phpfreaks.com/topic/216620-php-fopen/#findComment-1125464 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.