PDA

View Full Version : pop-up problem


turkworldsat
Sat 20th Nov '04, 11:23am
i wanna add a pop-up to my site. Which code can i add? and where must i write this code?

Floris
Sat 20th Nov '04, 11:39am
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>anydocument.html</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function vBpopup(vBurl,vBname,vBoptions) {
window.open(vBurl,vBname,vBoptions);
}
//-->
</script>
</head>

<body onload="vBpopup('http://www.yourdomain.com/yourfile.html','Popup','toolbar=yes,scrollbars=yes ,width=400,height=200')">
<div>When you load this .html page a new 400x200 popup window will load yourfile.html in it.</div>
</body>
</html>


That should be a nice example :)