SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: CSS in Popup

Hybrid View

  1. #1
    SitePoint Enthusiast Cory R's Avatar
    Join Date
    Mar 2009
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS in Popup

    http://www.quirksmode.org/js/popup.html

    How would I apply CSS to a popup using that method? The write method replaces all content and I'm trying to bring up another page on a message board. I tried innerHTML and I couldn't get it to work.

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2011
    Location
    Canada,Montréal
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What are the language you are using for your messageBaord.Do you use php ? Personally i dont recommend using pop-up to open a new windowbecause a ot of user will block it . However you could consider using a technique like this http://yensdesign.com/tutorials/popupjquery/ to open up your new page .

    You can add a CSS file to your pop_up.html and style it like you would do with any other webpage.

    Hope that helped .


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •