• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

html body tag

 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have around 1000-1500 html files where I would like to make a small change in "body tag" of all files.
That is, I would like to add onload event in the body tag of all the html files.
<body on load = "function()">
I would like to do this using java or some programming tool as a batch operation as it cannot be done manually.
Any idea or suggestions would be really appreciated.
Thank you
Regards
Balaji
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most IDE's worth their salt have a global search/replace function. Is there something about your pages that prevents using this simple solution?
hth,
bear
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you are using a .js file, you could just use:
window.on_load= functionName;
or you could yse a program like this:
http://download.com.com/3000-2248-4931801.html?legacy=cnet
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Eric, the BKReplace Em is pretty interesting for me.Thank for the wonderful link.
No not all files were using .js.
Regards
Balaji
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Bear Bibeault:
Most IDE's worth their salt have a global search/replace function. Is there something about your pages that prevents using this simple solution?
hth,
bear


thanks for your reply Bear!.. I'm using textpad and don't have a working version of dreamweaver or ms visual interdev.Yes!.. both dreamweaver and VisualInterdev has such facility.
 
Hold that thought. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic