Posts Tagged javascript

Remove a CSS File from a webpage dynamically

It’s actually quite easy to remove a CSS or JS file from a webpage dynamically, it’s a little Javascript function: function removejscssfile(filename, filetype) { var targetelement=(filetype==”js”)? “script” : (filetype==”css”)? “link” : “none” //determine element type to create nodelist from var targetattr=(filetype==”js”)? “src” : (filetype==”css”)? “href” : “none” //determine corresponding attribute to test for var allsuspects=document.getElementsByTagName(targetelement) [...]

No Comments

Change the Page Title on Tell-A-Friend confirmation page

This is a simple bit of code, but it’s something that may come up depending on the development you are doing. For example, in Business Catalyst the Tell-A-Friend function allows you to email a page to someone and then redirects to a confirmation page when done.  Unfortunately, that page shows your account name as the [...]

No Comments