Community discussion forum

Auto fill up webpage using java script

  • 1 year ago

    If I run a bookmarklet (which contain a java script), it will auto fill up a webpage contain two text box named T1 and T2. But if a webpage containing two or more frames and any of these frames contain T1 and T2 text box then it does not work. The bookmarklet runs an external java script named fill.js from any where. So please any body provide help for bookmarklet java script that will fill up text box data automatically in multi frame webpage

    The bookmarklet  could be something like this:---
    BLOCKED SCRIPT(function(){var s=document.createElement("script");s.charset="UTF-8";s.src="http://www.somewhere.com/fill.js";document.body.appendChild(s)})();


    // ----------- Start Java Script-----------
    //------------ This java script containg in a file called 'fill.js' -------

    var t1 = '99';
    var t2='88';

    function fillerup() {

    document.all.T1.value=this.t1; // T1 is the name of a text box
    document.all.T2.value=this.t2; // T2 is the name of a text box

    }

    fillerup();

    // -----------End Java Script-----------

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!