Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Whenever i try to open a site , i want page to redirect to some other page . So , i have added a javascript to redirect using the content editor on my page . Now i want to edit the code added to Content editor . But i am unable to find the page in edit mode because the script run and its being redirected . How can i solve this problem ?

share|improve this question
add comment

4 Answers 4

up vote 2 down vote accepted

You can go to the webpart maintainance page by adding ?contents=1 to the page and delete the webpart and add it again to page

share|improve this answer
    
this will work the best and easiest . . all other approaches are also working g8 . . thx to all :) –  Nikhil Jan 6 '11 at 5:50
add comment

Best practice would be to create the javascript file and upload it to a -Script Library-. Then just reference that file in the Content Editor WebPart, that way you could always just edit the source file.

By default, there is also a redirect page layout type that gets created when publishing is enabled. You may want to take a look at that as well.

share|improve this answer
add comment

I agree to Thomson's answer, but give a try in SharePoint Designer too

share|improve this answer
add comment

Either Sharepoint designer or if you're using publishing pages, you can just go to the Pages library and edit the content there.

You can also try to disable javascript before going to the page - Not sure how much of the core editing will work though.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.