John
13th March 2005, 01:00
More help needed please.....
I am wanting to create a simple pop up window from a text link on my web page, but whatever technique I try seems to fail.
Currently in the HEAD I have:
<script language="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=450');");
}
// End -->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=450');");
}
// End -->
</script>
and in the BODY I have:
<a href="javascript:popUp('portfolio.html')">Design Portfolio</a>
but I just can't seem to get it to work. When clicking the link it says "cannot find [directory path] /="
... when I at least expect it say "cannot find [directory path] /portfolio.html"
Any help would be much appreciated.
I am wanting to create a simple pop up window from a text link on my web page, but whatever technique I try seems to fail.
Currently in the HEAD I have:
<script language="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=450');");
}
// End -->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=450');");
}
// End -->
</script>
and in the BODY I have:
<a href="javascript:popUp('portfolio.html')">Design Portfolio</a>
but I just can't seem to get it to work. When clicking the link it says "cannot find [directory path] /="
... when I at least expect it say "cannot find [directory path] /portfolio.html"
Any help would be much appreciated.