Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
Issue with getting my button codes to redirect users to another page?

I am having trouble with my code. I am using SharePoint 2013 and am trying to implement codes to get my buttons to redirect a user to another page. However, the buttons do not seem to function. Can anyone point out what I am doing wrong? Is it the code?

Example of the button codes:

<input id="btnSearch" onclick="return RedirectUrl();" type="button" value="Carian"/>  
 <input id="btnHome" onclick="return RedirectUrl(/itasset/_layouts/15/start.aspx#/Lists/it_list/AllItems.aspx);" type="button" value="home"/>  

Example of the page: enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Apparently you have a javascript function that redirects you to the new page. That function expects a variable as a string, so put the url between single quotes.

Try this:

RedirectUrl('/itasset/_layouts/15/start.aspx#/Lists/it_list/AllItems.aspx')

And ofcourse RedirectUrl() has no variable so it won't work.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!