₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,083 members, 8,420,226 topics. Date: Thursday, 04 June 2026 at 02:02 PM

Toggle theme

My Javascript Code Is Not Working - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersMy Javascript Code Is Not Working (848 Views)

1 Reply (Go Down)

My Javascript Code Is Not Working by Nobody:
Goodday every one. I wrote a code using the createElement() method down to the append child() method. Yet the code will not run in my firefox and IE, instead only the text that was written in html shows but does not show the one I planned to created using js. Any possible solution to help me solve this issue and I will be extreme delighted and grateful.
Re: My Javascript Code Is Not Working by maekhel(m): 7:24am On Aug 28, 2014
let see your code
Re: My Javascript Code Is Not Working by Nobody: 12:27pm On Aug 28, 2014
Trollin'
Re: My Javascript Code Is Not Working by Nobody: 9:24am On Aug 31, 2014
maekhel: let see your code
// the emoticon are actually closing brackets for the methods/functions
//Simple codes like this don't run on my browsers.

function sample()
{
alert("testing sample"wink ;
}
//another code that is not working
var paragraph= document.getElementById("para"wink ;

var p=document.createElement("p"wink ;

var content=p.createTextNode("this paragraph is not loading on my browser"wink ;

paragraph.appendchild("content"wink ;

/*also any code that use a method or a function does not run, dunno if it's my system settings.*/
Re: My Javascript Code Is Not Working by maekhel(m): 12:18pm On Aug 31, 2014
First check to make sure JavaScript is not disabled in your browser.
How are you running your code
Re: My Javascript Code Is Not Working by Nobody: 1:28pm On Aug 31, 2014
maekhel: First check to make sure JavaScript is not disabled in your browser.
How are you running your code
Js is not disabled cos other complex code run on it but once I include the get_______ () method, it stops running, dunno if it might be an error from the system or should I try older browser versions.

I use notepad++ and use the run option on it to run it.
Also sometime the page icon in the folder doesn't open the webpage when double clicked on so I stuck to using notepad++ to run it.
Re: My Javascript Code Is Not Working by dhtml(m): 3:04pm On Aug 31, 2014
I dont understand what this op is saying.
Re: My Javascript Code Is Not Working by Nobody: 4:09pm On Aug 31, 2014
dhtml: I dont understand what this op is saying.
When I run my code, nothing appears on my browser. My browser will open a blank page.
1 Reply

Trouble With Javascript CodeJavascript Code To Make Rolling Banners/imagesWebmasters I Need Your Help On This Javascript Code234

Website Design Company In lagos 09080906018Linda Ikeji Blog Vs Nairaland,which One Is More Better?Need Some One To Help Set Up Facebook Ad Campaign