hyperlink target help
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=28485
Printed Date: 28 March 2026 at 9:08am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: hyperlink target help
Posted By: hudbarnett
Subject: hyperlink target help
Date Posted: 07 April 2010 at 10:09am
Hi there
I have been working on a database search system using an access db, in my asp code i have managed to get my results into my webpage but i would like to set all hyperlinks to open in an iframe called I1. Can anyone help with the following code, can see where i would add the target="I1" section..
Response.Write "<A HREF='http://" & RS("URL") & "'>" & RS("URL") &"</A> - " & RS("Name") & "<BR>"
I have tried placing it in a few areas but i keep getting errors...
Thanks
Hud Barnett
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 07 April 2010 at 4:15pm
You need to escape quote marks, by doubling them, eg ""
Response.Write "<A HREF=""http://" & RS("URL") & """ target=""I1"">" &
RS("URL") &"</A> - " & RS("Name") & "<BR>"
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: hudbarnett
Date Posted: 08 April 2010 at 9:50am
Hi there
Thank you very much for getting back to me. I have updated my code and it works great..
I searched the internet for an answer or demo of how this could be done, i was starting to think it was going to be impossible
Again thank you
Hud Barnett
|
|