Jump to content

[SOLVED] popup NO window


efficacious

Recommended Posts

Hello everyone,

 

I was just wondering how I could make a pop window that uses a div and an iframe rather then an actual new browser window.

 

i've tried this code snippet from W3schools but it gives me an 'invalid argument' error

 

function openday(x)
{
var p=window.createPopup();
var pbody=p.document.body;
pbody.style.backgroundImage="imgs/breaker.png";
pbody.style.backgroundColor="transparent";
pbody.style.border="solid black 1px";
pbody.innerHTML="This is a pop-up! Click outside the pop-up to close.";
p.show(150,150,200,50,document.body);
}

 

thanks,

eff

Link to comment
https://forums.phpfreaks.com/topic/121874-solved-popup-no-window/
Share on other sites

function openday()
{
document.getElementById('Popper').style.Visibility='visible';
document.getElementById('Popper').style.Display='block';
}

 

 

tryed using this with an onclick event but it does nothing.. doens't even throw an error

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.