Avatar of yairab
yairab
 asked on

string manipulation

hi

i creat a email sender that in simple asp (vbs)

i tray to do :
theBody = theBody & "<a href=javascript:window.open('" & theUrlLink & "', 'width=900')>xxx</a>

whit no success  the link is bracke down

i tray to use window.open because  i wont that the link address will open in full window

thanks
ASPHTML

Avatar of undefined
Last Comment
G_H

8/22/2022 - Mon
HugoHiasl

Did you use .HTMLBody instead of .Body?
yairab

ASKER
no
G_H

Would something like this not be better?

theBody = theBody & "<a href=""" & theUrlLink & """ target=""_blank"">xxx</a>"

GH
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
HugoHiasl

Your string should be ok.

G_H is right. Encapsulation with quotes would make it more readable but should not be neccessary.

You need to set it to the correct property:
http://msdn.microsoft.com/en-us/library/aa171418%28v=office.11%29.aspx
yairab

ASKER
hi
thanks for replay

G_H
i wont to open the url in a full window  
it is posibale whit <a href>  tag?
yairab

ASKER
i get the problems when i tray to use window.open(...)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
G_H

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.