View Full Version : window.open and php

08-20-2011, 03:29 AM
I have a page that has a few links that are using window.open to open another window with some information on it without the address bar etc...When I had the page in html format it worked perfectly now that ive put the page into php for a few other things im doing on the page you click a window.open link and it pulls up the window but says it cannot find the html file its linked to. I changed the file its linked to to php and it works but the second page is not loading the css style sheet so with window.open any ideas why it wont open the html file put will open the same exact file if its in php?

Code Example:

<script language="JavaScript">
function deposits(){
("cardscripts/deposits.html/","","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=600, height=610");

Code for the link:

<a href="javascript:deposits()" value="Open Window">Deposits</a>

The page this was on was in html, then I changed the page to php, when i change the link that the window.open goes to to php it loads the page but not the style sheet, if i keep deposits.html as html it says it cant find the page.

08-20-2011, 06:32 AM
Fixed it, just removed the / on the end of the link in the window.open function. went from