big-dog1965 Posted August 4, 2009 Share Posted August 4, 2009 How do I get this to work the top link is what I want to do the 2nd works but in a whole new page I want it in my frame as the top one indicates NOTE if the top one is left in the whole thing bombs out and no links show up at all Code: [select]function toprightmenu() { retVal = "<a target=\"mainframe"href=\"../forms/Contest/contest.html\">Win My Windows</a><br> " + "<a href=\"forms/Contest/contest.html\">Win My Windows</a><br> " + "<a href=\"http\">Some Other Link</a><br> " + "<a href=\"http\">Some Other Link</a>"; return retVal; } Quote Link to comment https://forums.phpfreaks.com/topic/168763-links-in-a-js-file/ Share on other sites More sharing options...
Adam Posted August 4, 2009 Share Posted August 4, 2009 I posted a reply in the other post. http://www.phpfreaks.com/forums/index.php/topic,263424.0.html Quote Link to comment https://forums.phpfreaks.com/topic/168763-links-in-a-js-file/#findComment-890460 Share on other sites More sharing options...
big-dog1965 Posted August 4, 2009 Author Share Posted August 4, 2009 Didnt seem to work with this in the .js file there are not any linking words on page at all. If I delete this porsion out of code the other stuff much like this shows the linking words. so something I would expect in this is killing everything. function toprightmenu() { retVal = "<a target=\"mainframe\" href=\"../forms/Contest/contest.html\">Win My Windows</a><br> " + "<a target=\"mainframe\" href=\"../forms/EmploymentApplication/employerapp.html\">Employment</a><br> " + "<a target=\"mainframe\" href=\"../forms/GeneralInquiries/generalinquiries.html\">General Iquieres</a><br> " + "<a target=\"mainframe\" href=\"../forms/ServiceRrequest/servicerrequest.html\">Service Request</a><br> " + "<a target=\"mainframe\" href=\"../forms/estimate/estimates.html\">Esitimates</a><br> " +"; return retVal; } Here is a couple retval that show the links on page but dont go any where do to no link in code, but the linking words show on page function midleftmenu() { retVal = "<a href=\"http\">Manufacture Link</a><br> " + "<a href=\"http\">Manufacture Link</a><br> " + "<a href=\"http\">Manufacture Link</a>"; return retVal; } function midrightmenu() { retVal = "<a href=\"http\">Some Other Link</a><br> " + "<a href=\"http\">Some Other Link</a><br> " + "<a href=\"http\">Some Other Link</a>"; return retVal; } Quote Link to comment https://forums.phpfreaks.com/topic/168763-links-in-a-js-file/#findComment-890501 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.