Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

92
Views
Actualice html con js en lugar de crear un nuevo archivo

en este momento, mi secuencia de comandos descarga un archivo html con nombre (1), nombre (2), etc. Me pregunto si puedo cambiar esta secuencia de comandos para actualizar el archivo local y agregar valor en lugar de descargar. O la segunda opción, ¿puedo forzar de alguna manera a html a buscar el archivo "INCFINDERdb("highestvalue").html"?

 function save() { var htmlContent = [document.getElementById('saveinc').value]; var bl = new Blob(htmlContent, { type: "text/html" }); var a = document.createElement("a"); a.href = URL.createObjectURL(bl); a.download = "INCFINDERdb.html"; a.hidden = true; document.body.appendChild(a); a.innerHTML = " random "; a.click(); } document.addEventListener('DOMContentLoaded', function() { document.getElementById('click-me3').addEventListener('click', save); });
 <input type="text" id="saveinc"> <button class="button" id='click-me3'> Save INCs to ignore </button> <div class="info-box"> IGNORUJEMY TE CI <iframe src="/INCdb/INCFINDERdb.html" title="description"></iframe> </div>

Más adelante, quiero agregar la opción de eliminación también con la actualización. ¿Funcionará document.removeElement ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

chrome.downloads.onDeterminingFilename.addListener(function (item, suggest) { suggest({ filename: '..', conflictAction: 'overwrite' }); });

Solucionado mi problema

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!