Web Analytics Made Easy -
StatCounter window.open and php - CodingForum


No announcement yet.

window.open and php

  • Filter
  • Time
  • Show
Clear All
new posts

  • window.open and php

    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.
    Last edited by brock029; Aug 20, 2011, 12:25 AM.

  • #2
    Fixed it, just removed the / on the end of the link in the window.open function. went from