Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

JavaScript window.onload() in CEWP

$
0
0

I've some static html content on a page and i want to highlight parts of it depending upon the parameters in the URL string. The retrieval of parameter value and highlighting logic is written in widow.load() and I've included the corresponding javascript and the html in a CEWP.  But after i edit the CEWP and save it for the first time, the page is no more editable until i delete the webpart. 'Edit Page' from Site Actions, 'Page' options in the Ribbon are disabled. The script works fine.


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>