Ive tryed setting up a pop-up which is launched by clicking a link, using the following code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=500,height=250');");
}
// End -->
</script>
Then seting the link to:
<A HREF="javascript : popUp('www.dark-skys.com')">Open the Popup Window</A>
It works when i tested it on a blank file, but when i insert it into the body of the file i want to use it in it just does nothing, I dunno if its because ive set up an external file (home.js) for the javascripts, even though other javascripts work when inserted into the body of the document along with the external file. Even when ive tryed inserting it into the external file it still doesn't work???
So is their any way i can get it to work without having to scrap to external file and insterting the javascripts back into the body????
Thanks in advance 
|