PDA

View Full Version : Popup Window



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.

TheOldhamWhisper
13th March 2005, 01:31
Why not stick to simple HTML?

Something like:


(a href= "portfolio.html" target="_blank")Design Portfolio(/a)</FONT>

where ( = < and ) = >

John
13th March 2005, 01:45
I would do that Oldham, only I don't want scrollbars, status bar, etc etc to show up when the new window opens. If there is a way to use HTML and disable all these things then I'd be grateful for the solution!

Thanks.

TheOldhamWhisper
13th March 2005, 01:51
Try here:

http://www.htmlcodetutorial.com/linking/linking_famsupp_70.html

John
13th March 2005, 02:31
Oldham, thanks a lot, you're a genius. http://www.win2winracing.com/forum/images/smilies/cwm38.gif

silax
13th March 2005, 03:06
you obviously haven't been to the silax scool of pc repair and pc problem solving
screwdriver = success

John
13th March 2005, 03:17
http://www.win2winracing.com/forum/images/smilies/CompBuster.gif