I try to use a script a friend gave me and I have the following error message while clicking on the link who opens the popup :
skin has no properties
Error is pointing to the code: skin.width=popwidth;
no idea on what the problem can be ... seems that style property is not correct but seems to be ok according to the doc I found.
Any idea is welcome
html code from jsp page :
<html>
<head>
<SCRIPT LANGUAGE="JavaScript" SRC="popup.js"></SCRIPT>
</head>
<body>
<div id='pup'></div>
<a href="javascript
opitup('toto','white')">
</body>
</html>
popup.js :
var popwidth = 400; // popup width
var skin=document.getElementById("pup").style;
...
function popitup(omsg,bak) {
...
skin.width=popwidth;
...
}