How to create href link from DOM

Asked By 0 points N/A Posted on -

I want to create href link how can I using DOM. Like:

<a href="index.php">home</a>

I'm using document.createTextNode() property to add text can I use innerText and innerHTML property.

Please help.

Answered By 0 points N/A #129092

How to create href link from DOM



You want to create Document.createTextNode.

It is similar but you have to maintain some alternative and different code by HTML code.

At first you make sure creating notepad except document and established the href link: then it will turn into (.HTML) and there you have your link. Create default notepad which is only from start menu and All programs.

Remember your link complete when you make real page being HTML code i show you a image for saving file.

So keep existing file into (html/shtml….).

If you will not rectify your problem then lease visit this link:

You have all of method and code in HTMl/ JavaScript/ CSS and all forms of website page base.

thank you.

Login/Register to Answer

Related Questions