...

View Full Version : link (and new window)



Lbb
08-28-2004, 11:17 AM
Hia all,
i'm having a problem opening this in a new window using the _blank option,
this is a combined JS and HTML link:
<a href=\"http://localhost/cal5/bla.asp?date='"+Cal.FormatDate(PValue)+"'\">
now, i want to enter the target="_blank" stuff in it to open this thing in a new window
i've tried a few variation but it didn't help,
my question is:
How?
thanks
La bla bla

glenngv
08-28-2004, 12:02 PM
var s = '<a href="http://localhost/cal5/bla.asp?date='+Cal.FormatDate(PValue)+
'" target="_blank">link</a>';

Willy Duitt
08-28-2004, 12:05 PM
Try: <a target=\"blank\" href=.....
Or: window.open(....)

Lbb
08-28-2004, 01:54 PM
thanks Willy Duitt
one more thing,
how can i detemine the size of that window (the new 1?)
thanks,
La bla bla

glenngv
08-30-2004, 03:55 AM
You mean you want to specify the size of the popup window?

var s = '<a href="http://localhost/cal5/bla.asp?date='+Cal.FormatDate(PValue)+
'" target="_blank" onclick="window.open(this.href, this.target, 'width=500, height=400');return false">link</a>';



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum