[blind-programming] Re: Insert Html tag

  • From: "E.J. Zufelt" <lists@xxxxxxxxx>
  • To: blind-programming@xxxxxxxxxxxxx
  • Date: Tue, 20 Sep 2011 06:35:23 -0400

My recommendation is that you use something like the jQuery Javascript library 
http://jquery.com .

You can then write Javascript code like:

// Create a new element.
var myEl = $('<div>Something here</div>');

// Find an element in the DOM by id.
var insertPoint = $('#insert-point');

// Insert the new element before the one we found.
$(insertPoint).before(myEl);

Everett Zufelt
http://zufelt.ca

Follow me on Twitter
http://twitter.com/ezufelt

View my LinkedIn Profile
http://www.linkedin.com/in/ezufelt



On 2011-09-20, at 6:27 AM, paniz alipour wrote:

> Yes I want just to edit a page ,and the page can be an asp page php page a 
> webpage totally no not require generated by CMS.
> 
> I want to edit the web page by javascript,yes insert tag by javascript.
> Thanks 
> 
> On Tue, Sep 20, 2011 at 12:59 PM, E.J. Zufelt <lists@xxxxxxxxx> wrote:
> Can you provide some more information?
> 
> Do you want to just edit a page, do you want to do the insertion with 
> Javascript, is the page static .html or generated by a content management 
> system?
> 
> Please try to explain in as much detail as you believe appropriate exactly 
> what you want to do.
> 
> 
> Everett Zufelt
> http://zufelt.ca
> 
> Follow me on Twitter
> http://twitter.com/ezufelt
> 
> View my LinkedIn Profile
> http://www.linkedin.com/in/ezufelt
> 
> 
> 
> On 2011-09-20, at 5:25 AM, paniz alipour wrote:
> 
>> Hello All ,
>> 
>> I want to insert a html tag into a webpage how can I do that?
>> 
>> Thanks
>> 
>> -- 
>> Paniz Alipour
> 
> 
> 
> 
> -- 
> Paniz Alipour

Other related posts: