Jump to content

links in a .js file


big-dog1965

Recommended Posts

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;

}

Link to comment
https://forums.phpfreaks.com/topic/168763-links-in-a-js-file/
Share on other sites

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;
}

Link to comment
https://forums.phpfreaks.com/topic/168763-links-in-a-js-file/#findComment-890501
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.