Auto fill up webpage using java script

java , javascript Pakistan
  • 12 years 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).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only two kinds of languages: the ones people complain about and the ones nobody uses” - Bjarne Stroustrup