TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Redirect to different page on Cancel or Save button click in NewForm.aspx
Vijai Anand Ramalingam
Jan 07, 2014
42.7
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
Redirect to different page on Cancel or Save button click in NewForm.aspx
<script src=
"/sites/Vijai/SiteAssets/jquery.SPServices-0.7.2.min.js"
type=
"text/javascript"
></script>
<script src=
"/sites/Vijai/SiteAssets/jquery-1.8.3.js"
type=
"text/javascript"
></script>
<script type=
"text/javascript"
>
$(document).ready(
function
(){
$(
'input[value=Cancel]'
).click(
function
() {
window.location.replace(
"http://www.google.com"
);
});
$(
'input[value=Save]'
).click(
function
() {
window.location.replace(
"http://www.google.com"
);
});
});
</script>
Redirect to different page on Cancel or Save button click in NewForm.aspx
Next Recommended Reading
How to Redirect from a SharePoint Page/ Site to Another Page