View Full Version : link (and new window)

08-28-2004, 10: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:
La bla bla

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

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

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

08-30-2004, 02: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